Skip to content

Commit

Permalink
Remove unused "type: ignore" comment per mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
kjd committed Nov 23, 2023
1 parent af168e9 commit 0a04365
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions idna/codec.py
Expand Up @@ -107,8 +107,8 @@ def search_function(name: str) -> Optional[codecs.CodecInfo]:
return None
return codecs.CodecInfo(
name=name,
encode=Codec().encode, # type: ignore
decode=Codec().decode, # type: ignore
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamwriter=StreamWriter,
Expand Down
2 changes: 1 addition & 1 deletion idna/core.py
Expand Up @@ -318,7 +318,7 @@ def uts46_remap(domain: str, std3_rules: bool = True, transitional: bool = False
status = uts46row[1]
replacement = None # type: Optional[str]
if len(uts46row) == 3:
replacement = uts46row[2] # type: ignore
replacement = uts46row[2]
if (status == 'V' or
(status == 'D' and not transitional) or
(status == '3' and not std3_rules and replacement is None)):
Expand Down

0 comments on commit 0a04365

Please sign in to comment.