Skip to content

Commit

Permalink
Update mypy exception as idna was updated and we now have type hintings.
Browse files Browse the repository at this point in the history
  • Loading branch information
adiroiban committed Jul 15, 2021
1 parent 2163d70 commit d2c2aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/twisted/internet/_idna.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _idnaBytes(text):
@rtype: L{bytes}
"""
try:
import idna # type: ignore[import]
import idna
except ImportError:
return text.encode("idna")
else:
Expand Down

0 comments on commit d2c2aea

Please sign in to comment.