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
So until Python 3.7 is dropped (I think this is the version I am not very up to date with my type checking knowledge) we could instead just drop the if TYPE_CHECKING and use
#TODO: Switch to os.PathLike[str] once Python 3.7 droppedPathOrStr=Union[str, "os.PathLike[str]"]
What the if here? The string form is fine until you drop Pythons that don’t support it.
Originally posted by @henryiii in #1909 (comment)
This was in reference to
in PR #190 now in
pyhf/src/pyhf/typing.py
Lines 30 to 33 in ad1dd86
So until Python 3.7 is dropped (I think this is the version I am not very up to date with my type checking knowledge) we could instead just drop the
if TYPE_CHECKING
and useThis would also allow for reverting PR #1937.
The text was updated successfully, but these errors were encountered: