Skip to content

Commit f792b14

Browse files
_tcl: fix bytes usage (#9010)
1 parent cb90e9d commit f792b14

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stdlib/_tkinter.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ from typing_extensions import Literal, final
1717
# (<textindex object: '1.0'>, <textindex object: '2.0'>)
1818
@final
1919
class Tcl_Obj:
20-
string: str | bytes
21-
typename: str
20+
@property
21+
def string(self) -> str: ...
22+
@property
23+
def typename(self) -> str: ...
2224
__hash__: ClassVar[None] # type: ignore[assignment]
2325
def __eq__(self, __other): ...
2426
def __ge__(self, __other): ...

0 commit comments

Comments
 (0)