Skip to content

Commit

Permalink
Merge pull request #802 from clintonsteiner/fixVerificationPyUpgrade
Browse files Browse the repository at this point in the history
Update verification.py per pyupgrade parsing
  • Loading branch information
akaihola authored Feb 3, 2025
2 parents e635a6b + 9d5b496 commit e1bd762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/darker/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import ast
import sys
import warnings
from typing import TYPE_CHECKING, Dict, Iterator
from typing import TYPE_CHECKING, Iterator

if TYPE_CHECKING:
from darkgraylib.utils import TextDocument
Expand Down Expand Up @@ -225,7 +225,7 @@ class ASTVerifier: # pylint: disable=too-few-public-methods

def __init__(self, baseline: TextDocument) -> None:
self._baseline_ast_str = self._to_ast_str(baseline)
self._comparisons: Dict[str, bool] = {baseline.string: True}
self._comparisons: dict[str, bool] = {baseline.string: True}

@staticmethod
def _to_ast_str(document: TextDocument) -> str:
Expand Down

0 comments on commit e1bd762

Please sign in to comment.