Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9134f7b

Browse files
authored
Fix type of typed_ast.ast27.Str.s (#4703)
The original type was too narrow.
1 parent 71e2cdc commit 9134f7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

third_party/3/typed_ast/ast27.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class Num(expr):
239239
n: Union[int, float, complex]
240240

241241
class Str(expr):
242-
s: bytes
242+
s: Union[str, bytes]
243243
kind: str
244244

245245
class Attribute(expr):

0 commit comments

Comments
 (0)