1
1
import sys
2
+ from _typeshed import ReadOnlyBuffer
2
3
from typing import Any , TypeVar
3
4
from typing_extensions import final
4
5
@@ -21,7 +22,7 @@ def east_asian_width(__chr: str) -> str: ...
21
22
if sys .version_info >= (3 , 8 ):
22
23
def is_normalized (__form : str , __unistr : str ) -> bool : ...
23
24
24
- def lookup (__name : str | bytes ) -> str : ...
25
+ def lookup (__name : str | ReadOnlyBuffer ) -> str : ...
25
26
def mirrored (__chr : str ) -> int : ...
26
27
def name (__chr : str , __default : _T = ...) -> str | _T : ...
27
28
def normalize (__form : str , __unistr : str ) -> str : ...
@@ -41,7 +42,7 @@ class UCD:
41
42
if sys .version_info >= (3 , 8 ):
42
43
def is_normalized (self , __form : str , __unistr : str ) -> bool : ...
43
44
44
- def lookup (self , __name : str | bytes ) -> str : ...
45
+ def lookup (self , __name : str | ReadOnlyBuffer ) -> str : ...
45
46
def mirrored (self , __chr : str ) -> int : ...
46
47
def name (self , __chr : str , __default : _T = ...) -> str | _T : ...
47
48
def normalize (self , __form : str , __unistr : str ) -> str : ...
0 commit comments