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
fromtypingimportTYPE_CHECKINGifTYPE_CHECKINGandsys.version_info>= (3, 12):
fromtypingimportoverrideelse:
# Define a no-op decorator when TYPE_CHECKING is Falsedefoverride(func):
returnfunc
If so, would you recommend putting this in some kind of utility .py file? Seems like it would get used an awful lot across the codebase
Feature Request / Improvement
For example, Catalog functions and FileIO functions
Only for Python 3.12 but that's ok since we run 3.12 in CI
https://rednafi.com/python/typing_override/
The text was updated successfully, but these errors were encountered: