Skip to content

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.

@hashhar hashhar merged commit 208880f into trinodb:master Dec 17, 2024
12 checks passed
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