8000 imaplib: _Authenticator also works with bytearray by JelleZijlstra · Pull Request #9056 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

imaplib: _Authenticator also works with bytearray #9056

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 8000
merged 5 commits into from
Nov 3, 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
10 changes: 5 additions & 5 deletions stdlib/imaplib.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import subprocess
import sys
import time
from _typeshed import ReadableBuffer, Self
from _typeshed import ReadableBuffer, Self, _BufferWithLen
from builtins import list as _list # conflicts with a method named "list"
from collections.abc import Callable
from datetime import datetime
Expand Down Expand Up @@ -151,11 +151,11 @@ class IMAP4_stream(IMAP4):
def open(self, host: str | None = ..., port: int | None = ...) -> None: ...

class _Authenticator:
mech: Callable[[bytes], bytes]
def __init__(self, mechinst: Callable[[bytes], bytes]) -> None: ...
mech: Callable[[bytes], bytes | bytearray | memoryview | str | None]
def __init__(self, mechinst: Callable[[bytes], bytes | bytearray | memoryview | str | None]) -> None: ...
def process(self, data: str) -> str: ...
def encode(self, inp: bytes) -> str: ...
def decode(self, inp: str) -> bytes: ...
def encode(self, inp: bytes | bytearray | memoryview) -> str: ...
def decode(self, inp: str | _BufferWithLen) -> bytes: ...

def Internaldate2tuple(resp: ReadableBuffer) -> time.struct_time | None: ...
def Int2AP(num: SupportsAbs[SupportsInt]) -> bytes: ...
Expand Down
0