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

Typehint common dunder methods #1238

Merged
merged 3 commits into from
Nov 8, 2022
Merged

Conversation

intgr
Copy link
Collaborator

@intgr intgr commented Nov 7, 2022

Was suggested in #1206 comments.

@@ -4,7 +4,6 @@ from django.contrib.gis.gdal.base import GDALBase as GDALBase

class Field(GDALBase):
ptr: Any = ...
__class__: Any = ...
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look like a mistake.

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! A couple of extra methods as ideas :)

django-stubs/contrib/gis/db/backends/base/adapter.pyi Outdated Show resolved Hide resolved
django-stubs/contrib/gis/gdal/layer.pyi Outdated Show resolved Hide resolved
django-stubs/contrib/gis/geos/geometry.pyi Outdated Show resolved Hide resolved
@@ -65,7 +65,6 @@ class LazyObject:
__bytes__: Callable = ...
__bool__: Callable = ...
__dir__: Callable = ...
__class__: Any = ...
__ne__: Callable = ...
__hash__: Callable = ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be turned into methods in the next PRs :)

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, great work!

@sobolevn
Copy link
Member

sobolevn commented Nov 8, 2022

You can now merge PRs yourself, go ahead :)

@intgr
Copy link
Collaborator Author

intgr commented Nov 8, 2022

Still seeing this message

Only those with write access to this repository can merge pull requests.

Tried logging out and back in.

@intgr
Copy link
Collaborator Author

intgr commented Nov 8, 2022

@sobolevn In case you missed the previous comment: I still don't have permissions to merge.

@intgr intgr merged commit 2b095eb into typeddjango:master Nov 8, 2022
@intgr intgr deleted the common-dunder-methods branch November 8, 2022 10:24
@sobolevn
Copy link
Member

sobolevn commented Nov 8, 2022

Sorry, this is the first time I use teams inside an org inside a repo :(
I think I've messed something up.

But, it should be fine now! I've sent you a new invite.
Can you please double check?

@adamchainz, it should be fine for you as well. Please, confirm :)

@sobolevn
Copy link
Member

sobolevn commented Nov 8, 2022

Oh, it is fine for @intgr
Congrats 🎉

@intgr
Copy link
Collaborator Author

intgr commented Nov 8, 2022

Yep it worked now, awesome!

"Squash and merge" is the correct flow in this repository, right? Maybe we can disable the other merge options in project settings? So I can't click the wrong button by accident :)

@sobolevn
Copy link
Member

sobolevn commented Nov 8, 2022

I also sometimes (rarely) use rebase and merge (when all commits make sense).

I will change it, thank you!

@adamchainz
Copy link
Contributor

Nice work here, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants