mirror of
https://github.com/1j01/textual-paint.git
synced 2024-10-05 20:07:45 +03:00
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:
parent
da7f29177d
commit
4a4012dbfd
@ -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
|
||||
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user