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

Add missing type annotations for the "ClientSession" class #502

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arturdryomov
Copy link
Member

Description

Type annotations for the client.ClientSession class based on constructor arguments and in-constructor behavior.

Release notes

Release notes are required, with the following suggested text:

* Add type annotations to `client.ClientSession`.

@cla-bot cla-bot bot added the cla-signed label Dec 13, 2024
@arturdryomov arturdryomov requested a review from hashhar December 13, 2024 12:36
Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

Thanks a lot.

Comment on lines +127 to +128
self._object_lock = threading.Lock()
self._prepared_statements: Dict[str, str] = {}
Copy link
Member

Choose a reason for hiding this comment

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

was the reordering required?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I moved them since they are not passed as arguments and it’s easier to distinguish logical difference. Can move back if needed.

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

Successfully merging this pull request may close these issues.

2 participants