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
The typical try/except typing block has an inner one that attempts to import Protocol from the typing module, but imports it from typing_extensions as a fallback. The typing_extensions module already attempts to import typing.Protocol anyways.
Therefore, this can be changed to a simple from typing_extensions import Protocol within the typing try/except block.
The text was updated successfully, but these errors were encountered:
The typical
try
/except
typing block has an inner one that attempts to importProtocol
from thetyping
module, but imports it fromtyping_extensions
as a fallback. Thetyping_extensions
module already attempts to importtyping.Protocol
anyways.Therefore, this can be changed to a simple
from typing_extensions import Protocol
within the typingtry
/except
block.The text was updated successfully, but these errors were encountered: