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

Skip to content

Commit 4a3b6eb

Browse files
authored
Update explanation for importing builtins.str (#5465)
1 parent 841a365 commit 4a3b6eb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

stdlib/locale.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import sys
2+
3+
# This module defines a function "str()", which is why "str" can't be used
4+
# as a type annotation or type alias.
25
from builtins import str as _str
36
from decimal import Decimal
47
from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Union

0 commit comments

Comments
 (0)