Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Regression: crash in initialize_unix_colors in 0.920 #11768

Description

@mjog

Bug Report

As of 0.920, running mypy as an emacs compile command raises the following error:

-*- mode: compilation; default-directory: "~/Projects/vee.net/planet-srv/" -*-
Compilation started at Thu Dec 16 21:35:25

cd $SRC_ROOT && poetry run mypy
Traceback (most recent call last):
  File "/home/mjog/.cache/pypoetry/virtualenvs/planet-srv-HUCGNwqs-py3.9/bin/mypy", line 8, in <module>
    sys.exit(console_entry())
  File "/home/mjog/.cache/pypoetry/virtualenvs/planet-srv-HUCGNwqs-py3.9/lib/python3.9/site-packages/mypy/__main__.py", line 11, in console_entry
    main(None, sys.stdout, sys.stderr)
  File "mypy/main.py", line 70, in main
  File "mypy/util.py", line 509, in __init__
  File "mypy/util.py", line 565, in initialize_unix_colors
TypeError: bytes object expected; got None

Reverting to 0.910 resolves the issue.

This may be a dependency or packaging issue - switching between 0.910 and 0.920 also causes toml to be updated from 0.10.2 to 2.0.0.

Python 3.9.7
Poetry 1.1.12

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions