mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 03:24:20 +00:00
✨ Create the typing package and use it instead of standard one
This commit is contained in:
parent
8b28418867
commit
9c58147a01
3 changed files with 13 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
from typing import *
|
||||
from royalnet.typing import *
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from typing import *
|
||||
from royalnet.typing import *
|
||||
import threading
|
||||
import redis
|
||||
import queue
|
||||
|
|
11
royalnet/typing/__init__.py
Normal file
11
royalnet/typing/__init__.py
Normal 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"]]
|
Loading…
Reference in a new issue