Skip to content

Commit

Permalink
Fix type hints for codec registration
Browse files Browse the repository at this point in the history
  • Loading branch information
kjd committed Nov 1, 2022
1 parent ddf28d0 commit f040ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idna/codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class StreamReader(Codec, codecs.StreamReader):
pass


def getregentry(name) -> codecs.CodecInfo:
def getregentry(name: str) -> Optional[codecs.CodecInfo]:
if name != 'idna' and name != 'idna2008':
return None

Expand Down

0 comments on commit f040ad8

Please sign in to comment.