8000 `mypy` doesn't see atributes in `nextcord.ext.commands` · Issue #635 · nextcord/nextcord · GitHub
[go: up one dir, main page]

Skip to content
mypy doesn't see atributes in nextcord.ext.commands #635
@PerchunPak

Description

@PerchunPak

Summary

Title.

Reproduction Steps

$ cat example.py
from nextcord.ext.commands import Bot
$ mypy example.py
example.py:1: error: Module "nextcord.ext.commands" has no attribute "Bot"

Minimal Reproducible Code

No response

Expected Results

No errors in mypy.

Actual Results

example.py:1: error: Module "nextcord.ext.commands" has no attribute "Bot"

Intents

None

System Information

- Python v3.10.4-final
- nextcord v2.0.0-alpha
    - nextcord pkg_resources: v2.0.0a10
- aiohttp v3.8.1
- system info: Linux 4.14.190-perf-g75e9984dc8e8 #1 SMP PREEMPT Tue Feb 15 22:26:40 CST 2022

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

I also writed this in discord thread, but solution - set implicit_reexport to True not helped.

And possibly add __all__ to nextcord.ext.commands will help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: mediumPriority: medium - should be worked on in the near futuret: bugType: bug - something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0