KEMBAR78
gh-114315: Make `threading.Lock` a real class, not a factory function by sobolevn · Pull Request #114479 · python/cpython · GitHub
Skip to content

Conversation

@sobolevn
Copy link
Member

@sobolevn sobolevn commented Jan 23, 2024

@gpshead gpshead self-assigned this Jan 25, 2024
@gpshead gpshead enabled auto-merge (squash) January 25, 2024 19:20
@gpshead gpshead merged commit d96358f into python:main Jan 25, 2024
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…nction (python#114479)

`threading.Lock` is now the underlying class and is constructable rather than the old
factory function. This allows for type annotations to refer to it which had no non-ugly
way to be expressed prior to this.

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…nction (python#114479)

`threading.Lock` is now the underlying class and is constructable rather than the old
factory function. This allows for type annotations to refer to it which had no non-ugly
way to be expressed prior to this.

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
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.

3 participants