forked from M-Labs/artiq
1
0
Fork 0

language: remove old type annotations

This commit is contained in:
Sebastien Bourdeauducq 2021-11-03 22:07:33 +08:00
parent a3543a5527
commit e5620a6b7f
2 changed files with 1 additions and 30 deletions

View File

@ -1,13 +1,11 @@
from artiq.language import core, types, environment, units, scan
from artiq.language import core, environment, units, scan
from artiq.language.core import *
from artiq.language.types import *
from artiq.language.environment import *
from artiq.language.units import *
from artiq.language.scan import *
__all__ = []
__all__.extend(core.__all__)
__all__.extend(types.__all__)
__all__.extend(environment.__all__)
__all__.extend(units.__all__)
__all__.extend(scan.__all__)

View File

@ -1,27 +0,0 @@
"""
Values representing ARTIQ types, to be used in function type
annotations.
"""
from artiq.compiler import types, builtins
__all__ = ["TNone", "TTuple",
"TBool", "TInt32", "TInt64", "TFloat",
"TStr", "TBytes", "TByteArray",
"TList", "TArray", "TRange32", "TRange64",
"TVar"]
TNone = builtins.TNone()
TBool = builtins.TBool()
TInt32 = builtins.TInt(types.TValue(32))
TInt64 = builtins.TInt(types.TValue(64))
TFloat = builtins.TFloat()
TStr = builtins.TStr()
TBytes = builtins.TBytes()
TByteArray = builtins.TByteArray()
TTuple = types.TTuple
TList = builtins.TList
TArray = builtins.TArray
TRange32 = builtins.TRange(builtins.TInt(types.TValue(32)))
TRange64 = builtins.TRange(builtins.TInt(types.TValue(64)))
TVar = types.TVar