Skip to content

Commit cc7a915

Browse files
tyrallasobolevn
andauthored
additional test
Co-authored-by: sobolevn <[email protected]>
1 parent 6757391 commit cc7a915

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test-data/unit/check-deprecated.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ class B(A): ...
410410
a = A()
411411
a.f(1) # E: overload def (self: __main__.A, v: builtins.int) of function __main__.A.f is deprecated: pass `str` instead
412412
a.f("x")
413+
414+
int_or_str: Union[int, str]
415+
a.f(int_or_str)
413416
a.g(1)
414417
a.g("x") # E: overload def (self: __main__.A, v: builtins.str) of function __main__.A.g is deprecated: pass `int` instead
415418
a.h(1) # E: function __main__.A.h is deprecated: use `h2` instead

0 commit comments

Comments
 (0)