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
A recent commit 86d0834 sets TYPE_CHECKING to True unconditionally, which breaks a workaround I had been using for a bug in typing. Essentially, it works like this:
if TYPE_CHECKING:
class MyType:
"""This is the actual class I need, but it falls over at runtime due to a bug"""
...
else:
class MyType:
"""This is a dummy class"""
...
A recent commit 86d0834 sets
TYPE_CHECKING
to True unconditionally, which breaks a workaround I had been using for a bug intyping
. Essentially, it works like this:You can see the full thread here: python/typing#561 (comment)
Please make this variable user-configurable; I can't build my docs with this change. Thank you!
The text was updated successfully, but these errors were encountered: