Skip to content

Commit

Permalink
**CI** Formatted code + Updated version number and documentation. [sk…
Browse files Browse the repository at this point in the history
…ip ci]
  • Loading branch information
thorwhalen committed Apr 19, 2022
1 parent 1c3e126 commit 83173da
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 2 additions & 3 deletions atypes/compatible.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def has_compatible_type(typing_inst1, typing_inst2):
):
return False

# split into root and leaves
# split into root and leaves
origin1, args1 = typing.get_origin(typing_inst1), typing.get_args(typing_inst1)
origin2, args2 = typing.get_origin(typing_inst2), typing.get_args(typing_inst2)

Expand All @@ -85,9 +85,8 @@ def has_compatible_type(typing_inst1, typing_inst2):
return origin_comp and len_comp and args_comp


if __name__ == "__main__":
if __name__ == '__main__':
t1 = Union[int, float]
t2 = Union[str, bool]
t3 = Union[float, str]
assert has_compatible_type(t1, t3)

1 change: 0 additions & 1 deletion atypes/tests/test_compatible.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ def test_callable():
Callable[[float, float], int], Callable[[int, float], int]
)
# assert not has_compatible_type(List[float], List[int])

4 changes: 4 additions & 0 deletions docsrc/module_docs/atypes/compatible.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
atypes.compatible
=================
.. automodule:: atypes.compatible
:members:
1 change: 1 addition & 0 deletions docsrc/table_of_contents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
:caption: Contents:

module_docs/atypes
module_docs/atypes/compatible
module_docs/atypes/protocols
module_docs/atypes/scrap/protocol_experimentation
module_docs/atypes/scrap/qc
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = atypes
version = 0.1.2
version = 0.1.3
url = https://github.com/otosense/atypes
platforms = any
description_file = README.md
Expand Down

0 comments on commit 83173da

Please sign in to comment.