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
- Check isinstance(arg, tf.keras.layers.Layer) at runtime.
- Type annotations refer to Protocols for the call() signature.
NOTE: This is not checked yet, google/pytype#81.
PiperOrigin-RevId: 405832960
bperozzi
pushed a commit
to tensorflow/gnn
that referenced
this issue
Nov 4, 2021
- Check isinstance(arg, tf.keras.layers.Layer) at runtime.
- Type annotations refer to Protocols for the call() signature.
NOTE: This is not checked yet, google/pytype#81.
PiperOrigin-RevId: 405832960
For such an example:
Mypy will complain the following error:
a.py:13: error: Return type of "bar" incompatible with supertype "A"
However pytype seems to ignore such an error.
Is there a way to check return type error incompatible with supertype? Thanks.
The text was updated successfully, but these errors were encountered: