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 code contained many runtime checks that threw TypeErrors
if wrong types were passed, even though it is considered
to be more "pythonic" to not check types at runtime at all.
In general, these checks add runtime cost and we can't
realistically check all arguments to all functions.
Instead we should focus on adding more asserts on stuff
that can't be checked using type hints.
If runtime checks are desired, they can still be added
by using runtime type-checkers like Beartype.
Replicates graphql/graphql-js@a4b085b
0 commit comments