Skip to content

__init__.pyi added on #570 breaks mypy #575

Closed
@vkottler

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

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