We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6757391 commit cc7a915Copy full SHA for cc7a915
test-data/unit/check-deprecated.test
@@ -410,6 +410,9 @@ class B(A): ...
410
a = A()
411
a.f(1) # E: overload def (self: __main__.A, v: builtins.int) of function __main__.A.f is deprecated: pass `str` instead
412
a.f("x")
413
+
414
+int_or_str: Union[int, str]
415
+a.f(int_or_str)
416
a.g(1)
417
a.g("x") # E: overload def (self: __main__.A, v: builtins.str) of function __main__.A.g is deprecated: pass `int` instead
418
a.h(1) # E: function __main__.A.h is deprecated: use `h2` instead
0 commit comments