Skip to content

Conversation

@max-muoto
Copy link
Contributor

Apply updates from python/cpython@8b209fd that causing CI failures.

def send(cid: SupportsIndex, obj: object, *, blocking: bool = True, timeout: float | None = None) -> None: ...
def send_buffer(cid: SupportsIndex, obj: Buffer, *, blocking: bool = True, timeout: float | None = None) -> None: ...
def recv(cid: SupportsIndex, default: object = ...) -> object: ...
def recv(cid: SupportsIndex, default: object = ...) -> tuple[Any, Literal[1, 2, 3]]: ...
Copy link
Contributor Author

@max-muoto max-muoto Jul 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retrospectively, I probably should have chosen Any instead of object, so changing it here.

def send_released(self) -> bool: ...

def create() -> ChannelID: ...
def create(unboundop: Literal[1, 2, 3]) -> ChannelID: ...
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoiding a type alias for a better IDE experience.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@max-muoto max-muoto changed the title Update interpchannels for beta 4 Update interpchannels for 3.13 beta 4 Jul 23, 2024
@hauntsaninja hauntsaninja merged commit e5bab16 into python:main Jul 23, 2024
max-muoto added a commit to max-muoto/typeshed that referenced this pull request Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants