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

Bump mypy and flake8-bugbear pins #416

Merged
merged 2 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
timeout-minutes: 5
strategy:
matrix:
python-version: ["3.8", "3.11"]
python-version: ["3.8", "3.12"]
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand All @@ -38,6 +38,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
allow-prereleases: true
- run: pip install -e .[dev]
- run: mypy

Expand Down
2 changes: 1 addition & 1 deletion pyi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@ def _is_likely_private_typevar(
return True
if sys.version_info < (3, 12):
return False
return any( # type: ignore[unreachable]
return any(
AlexWaygood marked this conversation as resolved.
Show resolved Hide resolved
isinstance(param, ast.TypeVar) and param.name == tvar_name
for param in method.type_params
)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ dependencies = [
[project.optional-dependencies]
dev = [
"black==23.3.0", # Must match .pre-commit-config.yaml
"flake8-bugbear==23.6.5",
"flake8-bugbear==23.7.10",
"flake8-noqa==1.3.2",
"isort==5.12.0", # Must match .pre-commit-config.yaml
"mypy==1.4.1",
"mypy==1.5.1",
"pre-commit-hooks==4.4.0", # Must match .pre-commit-config.yaml
"pytest==7.4.0",
"types-pyflakes<4",
Expand Down
Loading