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
Of course it may be not so obvious as in this example.
The variables may have different names, or types that look different may turn out to be the same after some evaluation (eg Optional[int] versus Union[int, None])
As it is, the second definition just overrides the first.
Maybe @dispatch could have an option eg (override=error) or something to that effect, so that you get an error message at the duplicate function
The text was updated successfully, but these errors were encountered:
I would like to have a feature or way to get warnings or errors if a method with same signature is defined twice
eg
Of course it may be not so obvious as in this example.
The variables may have different names, or types that look different may turn out to be the same after some evaluation (eg Optional[int] versus Union[int, None])
As it is, the second definition just overrides the first.
Maybe
@dispatch
could have an option eg(override=error)
or something to that effect, so that you get an error message at the duplicate functionThe text was updated successfully, but these errors were encountered: