Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.10
rev: v0.11.0
hooks:
- id: ruff
args: [--fix]
Expand Down
2 changes: 1 addition & 1 deletion flake8_async/visitors/visitor91x.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def visit_FunctionDef(self, node: cst.FunctionDef) -> bool:

# visit body
# we're not gonna get FlattenSentinel or RemovalSentinel
self.new_body = cast(cst.BaseSuite, node.body.visit(self))
self.new_body = cast("cst.BaseSuite", node.body.visit(self))

# we know that leave_FunctionDef for this FunctionDef will run immediately after
# this function exits so we don't need to worry about save_state for new_body
Expand Down
4 changes: 3 additions & 1 deletion tests/check_changelog_and_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from pathlib import Path
from typing import TYPE_CHECKING, NamedTuple, TypeVar

from typing_extensions import Self

if TYPE_CHECKING:
from collections.abc import Iterable

Expand All @@ -27,7 +29,7 @@ class Version(NamedTuple):
patch: int

@classmethod
def from_string(cls: type[T], string: str) -> T:
def from_string(cls, string: str) -> Self:
return cls(*map(int, string.split(".")))

def __str__(self) -> str:
Expand Down
Loading