| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| """ | ||
| try: | ||
| f.__final__ = True | ||
| except (AttributeError, TypeError): |
There was a problem hiding this comment.
I'd be open to just doing just except Exception here, in case some type throws a different exception if you try to set an attribute. For precedent, note that @no_type_check catches only TypeError.
Sorry, something went wrong.
|
LGTM. |
Sorry, something went wrong.
|
quora/pyanalyze#161. My type checker, pyanalyze, imports modules it typechecks and uses the runtime objects for checking. With this change, I can make it show an error if you inherit from something @final. |
Sorry, something went wrong.
There was a problem hiding this comment.
Some minor nits
Sorry, something went wrong.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
There was a problem hiding this comment.
Sounds like a good idea. I trust the current participants to come up with the right thing. Let me know when you all agree and you want me to merge it.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Thanks Jelle.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
https://bugs.python.org/issue46342