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

Javascript output in error report: error: Type of metaclass "[object Object]" is partially unknown #9530

Closed
mjpieters opened this issue Dec 2, 2024 · 3 comments
Labels
addressed in next version Issue is fixed and will appear in next published version bug Something isn't working

Comments

@mjpieters
Copy link

I just spotted a Javascript object representation in the output of --verifytypes prefect:

   error: Type of metaclass "[object Object]" is partially unknown

This occurs 702 times in this specific project. Clearly something broke in how metaclasses are reported.

Reproduce with:

python -m venv prefect-pyright-verifytypes
./prefect-pyright-verifytypes/bin/pip install pyright prefect
./prefect-pyright-verifytypes/bin/pyright --verifytypes prefect

Context

  • pyright version: 1.1.389
  • environment: macos 14.7.1 (23H222), arm64
  • python version: 3.12.3
@mjpieters mjpieters added the bug Something isn't working label Dec 2, 2024
erictraut added a commit that referenced this issue Dec 2, 2024
…tially-unknown metaclass type detected by the `--verifytypes` command. This addresses #9530.
@erictraut
Copy link
Collaborator

Thanks, this will be fixed in the next release.

@erictraut erictraut added the addressed in next version Issue is fixed and will appear in next published version label Dec 2, 2024
@mjpieters
Copy link
Author

@erictraut thanks, it never ceases to amaze me how incredibly fast you are with responding to issues!

@erictraut
Copy link
Collaborator

This is addressed in pyright 1.1.390.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addressed in next version Issue is fixed and will appear in next published version bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants