10000 unicodedata: accepts ReadOnlyBuffer by JelleZijlstra · Pull Request #9106 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

unicodedata: accepts ReadOnlyBuffer #9106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions stdlib/unicodedata.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys
from _typeshed import ReadOnlyBuffer
from typing import Any, TypeVar
from typing_extensions import final

Expand All @@ -21,7 +22,7 @@ def east_asian_width(__chr: str) -> str: ...
if sys.version_info >= (3, 8):
def is_normalized(__form: str, __unistr: str) -> bool: ...

def lookup(__name: str | bytes) -> str: ...
def lookup(__name: str | ReadOnlyBuffer) -> str: ...
def mirrored(__chr: str) -> int: ...
def name(__chr: str, __default: _T = ...) -> str | _T: ...
def normalize(__form: str, __unistr: str) -> str: ...
Expand All @@ -41,7 +42,7 @@ class UCD:
if sys.version_info >= (3, 8):
def is_normalized(self, __form: str, __unistr: str) -> bool: ...

def lookup(self, __name: str | bytes) -> str: ...
def lookup(self, __name: str | ReadOnlyBuffer) -> str: ...
def mirrored(self, __chr: str) -> int: ...
def name(self, __chr: str, __default: _T = ...) -> str | _T: ...
def normalize(self, __form: str, __unistr: str) -> str: ...
Expand Down
0