Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbuwen committed Sep 3, 2024
1 parent ba0a46d commit c594440
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions mypy/checkstrformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@

import re
from itertools import chain
from typing import TYPE_CHECKING, Callable, Dict, Final, Match, Pattern, Tuple, Union, cast, Sequence, Iterator
from typing import (
TYPE_CHECKING,
Callable,
Dict,
Final,
Iterator,
Match,
Pattern,
Sequence,
Tuple,
Union,
cast,
)
from typing_extensions import TypeAlias as _TypeAlias

import mypy.errorcodes as codes
Expand Down Expand Up @@ -392,7 +404,6 @@ def check_specs_in_format_call(
The core logic for format checking is implemented in this method.
"""
#raise RuntimeError
assert all(s.key for s in specs), "Keys must be auto-generated first!"
replacements = self.find_replacements_in_call(call, [cast(str, s.key) for s in specs])
assert len(replacements) == len(specs)
Expand Down

0 comments on commit c594440

Please sign in to comment.