diff --git a/royalnet/alchemist/__init__.py b/royalnet/alchemist/__init__.py index a613ec07..6ec7f7c3 100644 --- a/royalnet/alchemist/__init__.py +++ b/royalnet/alchemist/__init__.py @@ -1,4 +1,4 @@ -from typing import * +from royalnet.typing import * import sqlalchemy as sa diff --git a/royalnet/baron/__init__.py b/royalnet/baron/__init__.py index d50e7394..b83a0873 100644 --- a/royalnet/baron/__init__.py +++ b/royalnet/baron/__init__.py @@ -1,4 +1,4 @@ -from typing import * +from royalnet.typing import * import threading import redis import queue diff --git a/royalnet/typing/__init__.py b/royalnet/typing/__init__.py new file mode 100644 index 00000000..a0535e72 --- /dev/null +++ b/royalnet/typing/__init__.py @@ -0,0 +1,11 @@ +"""This package adds some new common types to the default typing package. + +It should be imported with: :: + + from royalnet.typing import * + +""" + +from typing import * + +JSON = Union[None, int, str, List["JSON"], Dict[str, "JSON"]]