inspect: use Literal type for Attribute.kind (#9149)

This commit is contained in:
Anh71me
2022-11-10 22:15:36 +08:00
committed by GitHub
parent 805519717b
commit cc66167c38

View File

@@ -585,7 +585,7 @@ _Object: TypeAlias = object
class Attribute(NamedTuple):
name: str
kind: str
kind: Literal["class method", "static method", "property", "method", "data"]
defining_class: type
object: _Object