Skip to content
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

Usage of dir on a Module throws an error #67

Closed
TheCleric opened this issue Apr 10, 2019 · 2 comments
Closed

Usage of dir on a Module throws an error #67

TheCleric opened this issue Apr 10, 2019 · 2 comments

Comments

@TheCleric
Copy link

Describe the bug
When running the builtin dir function on an imported module an error is shown:
Argument of type 'Module' cannot be assigned to parameter of type 'object'

To Reproduce

import builtins

dir(builtins)

Expected behavior
No error is thrown for this valid usage of dir.

VS Code extension or command-line
VS Code

Additional context
Python 3.6 (Anaconda)

@erictraut
Copy link
Collaborator

Thanks for the bug report. I just checked in a fix, which will be part of the next release.

@erictraut
Copy link
Collaborator

This is fixed in 1.0.11, which I just released.

heejaechang pushed a commit to heejaechang/pyright that referenced this issue Nov 3, 2021
…soft#67)

Customize pyrx import resolver to look for pyrx bundled stubs.
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

No branches or pull requests

2 participants