Skip to content

Commit 7522cb8

Browse files
committed
remove int_or_str tests
1 parent c95f936 commit 7522cb8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

test-data/unit/check-deprecated.test

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -407,29 +407,21 @@ class A:
407407

408408
class B(A): ...
409409

410-
int_or_str: Union[int, str]
411-
412410
a = A()
413411
a.f(1) # E: overload def (self: __main__.A, v: builtins.int) of function __main__.A.f is deprecated: pass `str` instead
414412
a.f("x")
415-
a.f(int_or_str) # E: overload def (self: __main__.A, v: builtins.int) of function __main__.A.f is deprecated: pass `str` instead
416413
a.g(1)
417414
a.g("x") # E: overload def (self: __main__.A, v: builtins.str) of function __main__.A.g is deprecated: pass `int` instead
418-
a.g(int_or_str) # E: overload def (self: __main__.A, v: builtins.str) of function __main__.A.g is deprecated: pass `int` instead
419415
a.h(1) # E: function __main__.A.h is deprecated: use `h2` instead
420416
a.h("x") # E: function __main__.A.h is deprecated: use `h2` instead
421-
a.h(int_or_str) # E: function __main__.A.h is deprecated: use `h2` instead
422417

423418
b = B()
424419
b.f(1) # E: overload def (self: __main__.A, v: builtins.int) of function __main__.A.f is deprecated: pass `str` instead
425420
b.f("x")
426-
b.f(int_or_str) # E: overload def (self: __main__.A, v: builtins.int) of function __main__.A.f is deprecated: pass `str` instead
427421
b.g(1)
428422
b.g("x") # E: overload def (self: __main__.A, v: builtins.str) of function __main__.A.g is deprecated: pass `int` instead
429-
b.g(int_or_str) # E: overload def (self: __main__.A, v: builtins.str) of function __main__.A.g is deprecated: pass `int` instead
430423
b.h(1) # E: function __main__.A.h is deprecated: use `h2` instead
431424
b.h("x") # E: function __main__.A.h is deprecated: use `h2` instead
432-
b.h(int_or_str) # E: function __main__.A.h is deprecated: use `h2` instead
433425

434426
[builtins fixtures/tuple.pyi]
435427

0 commit comments

Comments
 (0)