PATH: //opt/alt/python311/lib64/python3.11/test/test_inspect
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 inspect_fodder.py
↓
X
📄 inspect_fodder2.py
↓
X
📄 inspect_stock_annotations.py
↓
X
📄 inspect_stringized_annotations.py
↓
X
📄 inspect_stringized_annotations_2.py
↓
X
📄 test_inspect.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: inspect_stringized_annotations.py
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
SIMPAN PERUBAHAN