Skip to content

Commit

Permalink
chore(deps): update dependency typing/mypy to v1.11.0 (#765)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency typing/mypy to v1.11.0

* fix(scripts): use correct path for `generate_stdlibs`

* fix(scripts): set int for `lineno` to please `mypy`

* refactor(scripts): replace deprecated `ast.Str`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mathieu Kniewallner <mathieu.kniewallner@gmail.com>
  • Loading branch information
renovate[bot] and mkniewallner authored Jul 19, 2024
1 parent aa173dc commit 62cb01d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
60 changes: 30 additions & 30 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ docs = [
"mkdocs-material==9.5.28",
]
typing = [
"mypy==1.10.1",
"mypy==1.11.0",
"types-colorama==0.4.15.20240311; sys_platform == 'win32'",
]

Expand Down
6 changes: 3 additions & 3 deletions scripts/generate_stdlibs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from html.parser import HTMLParser
from pathlib import Path

OUTPUT_PATH = Path("deptry/stdlibs.py")
OUTPUT_PATH = Path("python/deptry/stdlibs.py")
STDLIB_MODULES_URL = "https://docs.python.org/{}.{}/py-modindex.html"

# Starting from Python 3.10, https://docs.python.org/3/library/sys.html#sys.stdlib_module_names is available.
Expand Down Expand Up @@ -74,7 +74,7 @@ def write_stdlibs_file(stdlib_python: dict[str, list[str]]) -> None:
ast.Assign(
targets=[ast.Name("STDLIBS_PYTHON")],
value=ast.Dict(
keys=[ast.Str(python_version) for python_version in stdlib_python],
keys=[ast.Constant(python_version) for python_version in stdlib_python],
values=[
ast.Call(
func=ast.Name(id="frozenset"),
Expand All @@ -84,7 +84,7 @@ def write_stdlibs_file(stdlib_python: dict[str, list[str]]) -> None:
for python_stdlib_modules in stdlib_python.values()
],
),
lineno=None,
lineno=0,
),
],
type_ignores=[],
Expand Down

0 comments on commit 62cb01d

Please sign in to comment.