Visitar URL original
`__init__.pyi` added on #570 breaks mypy · Issue #575 · MagicStack/uvloop · GitHub
Skip to content

__init__.pyi added on #570 breaks mypy #575

Description

@vkottler
  • uvloop version: 0.18.0
  • Python version: 3.11.4
  • Platform: Linux (Ubuntu)
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: N/A
  • Does uvloop behave differently from vanilla asyncio? How?: N/A
vkottler at vkottler-tower in ~/src/vkottler/vcorelib (dev/3.0.1)
$ ./venv/bin/mypy tests vcorelib setup.py tasks
vcorelib/asyncio/__init__.py:205: error: Module has no attribute "new_event_loop"  [attr-defined]
vcorelib/asyncio/__init__.py:209: error: Module has no attribute "install"  [attr-defined]
Found 2 errors in 1 file (checked 154 source files)

This appears to be caused by the addition of this file: https://github.com/MagicStack/uvloop/blob/master/uvloop/__init__.pyi.

It does not contain any information about e.g. __all__ defined in init.py.

edit: also reproduces in GitHub Actions

Activity

  1. vkottler commented on Oct 15, 2023

    @vkottler
    Author

    For my situation, I can just revert this commit: libre-embedded/vcorelib@81a1ba3 if/when there's a fix.

  2. fantix commented on Oct 15, 2023

    @fantix
    Member

    I believe #573 shall fix this issue.

  3. Kludex commented on Oct 18, 2023

    @Kludex

    Is a release expected to happen soon?

  4. graingert commented on Oct 19, 2023

    @graingert
    Contributor

    @fantix can you cut a release with this fix in? it's blocking CI on uvicorn.

    If you're busy that's ok just let me know and I'll depend on the git HEAD in uvicorn

  5. fantix commented on Oct 19, 2023

    @fantix
    Member

    Yeah sure - I'll try to include some more stuff and cut a release this weekend.

  6. danking commented on Oct 23, 2023

    @danking

    Thanks @fantix ! I think we can now close this issue.

    https://github.com/MagicStack/uvloop/releases/tag/v0.19.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions