mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 19:58:25 +08:00
language: remove old type annotations
This commit is contained in:
parent
a3543a5527
commit
e5620a6b7f
@ -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__)
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user