You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 3, 2026. It is now read-only.
pytype.pyi.types.ParseError: File: "/home/runner/work/typeshed/typeshed/stdlib/types.pyi", line 150
def co_lnotab(self) -> bytes: ...
^
ParseError: Too many decorators for co_lnotab: property, deprecated
Ideally pytype should support @deprecated and emit warnings for deprecated properties, but failing that, it should just ignore the decorator.
Activity
JelleZijlstra commentedon Nov 18, 2023
It also crashes on
__init__methods where one variant is deprecated (pytype.pytd.codegen.function.OverloadedDecoratorError: Overloaded signatures for __init__ disagree on decorators: https://github.com/python/typeshed/actions/runs/6916103348/job/18815781379?pr=11009).And on deprecated classmethods (https://github.com/python/typeshed/actions/runs/6916179270/job/18815978232?pr=11009):
Allow functions in pyi files to have any number of decorators.
JelleZijlstra commentedon Nov 22, 2023
Thanks for the quick fix!