Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

fix: pendulum.parse is not marked as exported#693

Merged
Secrus merged 1 commit intopython-pendulum:master from
cosmix:master
Apr 24, 2025
Merged

fix: pendulum.parse is not marked as exported #693
Secrus merged 1 commit intopython-pendulum:master from
cosmix:master

Conversation

@cosmix
Copy link
Contributor

@cosmix cosmix commented Feb 28, 2023

This PR fixes #595, by re-exporting parse().

parse() should be re-exported so that the user can just call pendulum.parse() as documented, given that the module is marked with py.typed.

No tests have been modified or added for this bugfix.

tomtastic reacted with hooray emoji
Copy link
Contributor Author

cosmix commented Mar 1, 2023

Note that the failing CI test has to do with the fact that the flake8 module that you're using seems to not like the import aliasing that needs to be used to fix the issue addressed by this PR and that exports the parse symbol in __init__.py.

For reference, I'm using the type checker rules listed on the pyright README here, but, to my understanding these are rules common to more type checkers for Python.

Copy link
Collaborator

Secrus commented Apr 23, 2025

Hi. Sorry for the delays, we are digging ourselves out of the pile of code debt. Could you please rebase your changes with the master branch so we can review and merge them?

@Secrus Secrus added this to the Pendulum 3.2 milestone Apr 23, 2025
@Secrus Secrus changed the title (削除) fixup: Fix #595 (削除ここまで) (追記) fix: pendulum.parse is not marked as exported (追記ここまで) Apr 23, 2025
Copy link
Contributor Author

cosmix commented Apr 23, 2025

@Secrus done.

Copy link

codspeed-hq bot commented Apr 24, 2025

CodSpeed Performance Report

Merging #693 will not alter performance

Comparing cosmix:master (7ef1b0b) with master (91d0c1e)

Summary

✅ 1 untouched benchmarks

@Secrus Secrus merged commit 1034b18 into python-pendulum:master Apr 24, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Secrus Secrus Secrus approved these changes

+1 more reviewer

@navmed navmed navmed approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

Pendulum 3.3

Development

Successfully merging this pull request may close these issues.

pendulum.parse is not marked as exported (pyright type checker in VSCode)

AltStyle によって変換されたページ (->オリジナル) /