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

This commit is contained in:
Anh71me authored and GitHub committed 2022-11-10 14:15:36 +00:00
1 parent 805519717b
commit cc66167c38
1 file changed
+1 -1
+1 -1
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