Skip to content

Commit

Permalink
Merge pull request #40 from ska-sa/remove-pre-py3.5.3-support
Browse files Browse the repository at this point in the history
Remove a bit of code for obsolete Python versions
  • Loading branch information
bmerry committed Apr 13, 2022
2 parents 6918755 + 5e28974 commit 3243651
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/aiokatcp/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,7 @@ def _union_args(cls: Any) -> Optional[Tuple[Type]]:
"""
if not isinstance(cls, type(Union[int, float])):
return None
try:
# Python 3.5.3 onwards
args = cls.__args__ # type: ignore
except AttributeError:
args = cls.__union_params__ # type: ignore
args = cls.__args__ # type: ignore
return args


Expand Down

0 comments on commit 3243651

Please sign in to comment.