Skip to content

BUG: typing.final supports properties#5985

Merged
srittau merged 2 commits intopython:masterfrom
twoertwein:master
Aug 31, 2021
Merged

BUG: typing.final supports properties#5985
srittau merged 2 commits intopython:masterfrom
twoertwein:master

Conversation

@twoertwein
Copy link
Copy Markdown
Contributor

Uses unconstrained TypeVar to fix #5984.

Another option could be to allow any object that is either Callable or has any (all?) of the property methods (__get__, __set__, __delete__).

@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit d4f0725 into python:master Aug 31, 2021
zedzhen added a commit to zedzhen/typeshed that referenced this pull request Apr 7, 2026
copy python#5985 for typing_extensions
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.

typing.final supports properties

2 participants