Update pyright version

There are no new errors or anything.

This silenced error is no longer generated:
  /home/io/Projects/textual-paint/src/textual_paint/wallpaper.py:241:18 - error: Stub file not found for "xdg" (reportMissingTypeStubs)
This commit is contained in:
Isaiah Odhner 2024-01-11 16:34:07 -05:00
parent da7f29177d
commit 4a4012dbfd
2 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ cspell-cli lint .
# I use the "Python" and "Pylance" VS Code extensions, and the Pyright CLI:
pyright
# I'm targeting zero errors at this version of Pyright:
PYRIGHT_PYTHON_FORCE_VERSION=1.1.327 pyright
PYRIGHT_PYTHON_FORCE_VERSION=1.1.345 pyright
# I also tried mypy and fixed some errors it reported, but I'm not targeting zero errors with mypy.
mypy src --no-namespace-packages --check-untyped-defs

View File

@ -238,7 +238,7 @@ def get_config_dir(app_name: str) -> str:
config_home = os.environ["APPDATA"]
else:
try:
from xdg import BaseDirectory # type: ignore
from xdg import BaseDirectory
config_home = BaseDirectory.xdg_config_home
except ImportError: # Most likely a Linux/Unix system anyway
config_home = os.path.join(get_home_dir(), ".config")