1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00

Create the typing package and use it instead of standard one

This commit is contained in:
Steffo 2020-10-02 03:39:44 +02:00
parent 8b28418867
commit 9c58147a01
3 changed files with 13 additions and 2 deletions

View file

@ -1,4 +1,4 @@
from typing import * from royalnet.typing import *
import sqlalchemy as sa import sqlalchemy as sa

View file

@ -1,4 +1,4 @@
from typing import * from royalnet.typing import *
import threading import threading
import redis import redis
import queue import queue

View file

@ -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"]]