[3.12] gh-108303: Move all inspect test files to test_inspect/ (GH-109607) (#110732)

(cherry picked from commit 732532b0af)
This commit is contained in:
Nikita Sobolev 2023-10-13 20:05:03 +03:00 committed by GitHub
parent 49da117665
commit 0102faf0ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 15 additions and 7 deletions

View file

@ -1,34 +0,0 @@
from __future__ import annotations
a:int=3
b:str="foo"
class MyClass:
a:int=4
b:str="bar"
def __init__(self, a, b):
self.a = a
self.b = b
def __eq__(self, other):
return isinstance(other, MyClass) and self.a == other.a and self.b == other.b
def function(a:int, b:str) -> MyClass:
return MyClass(a, b)
def function2(a:int, b:"str", c:MyClass) -> MyClass:
pass
def function3(a:"int", b:"str", c:"MyClass"):
pass
class UnannotatedClass:
pass
def unannotated_function(a, b, c): pass
class MyClassWithLocalAnnotations:
mytype = int
x: mytype