Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct type hint of def track(obj_field=) #118

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

SebastianDix
Copy link
Contributor

When I upgraded pghistory, PyCharm showed me a type error that None is not expected, when it actually is one of the allowed types. I can surpress this inspection for the entire class, but that is overkill. A correct type hint would be preferable, since None is a valid value and necessary for M2M table add/remove tracking.

When I upgraded pghistory, PyCharm showed me a type error that None is not expected, when it  actually is one of the allowed types. I can surpress this inspection for the entire class, but that is overkill. A correct type hint would be preferable, since None is a valid value and necessary for M2M table add/remove tracking.
@wesleykendall
Copy link
Member

Thank you!

@wesleykendall wesleykendall merged commit 479deda into AmbitionEng:main Aug 27, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants