Skip to content

Commit 72ed814

Browse files
authored
Generic Number type (#424)
Closes QuEraComputing/bloqade-circuit#296
1 parent a53d7ee commit 72ed814

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/kirin/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Bindings for built-in types."""
22

3+
import numbers
4+
35
from kirin.ir.method import Method
46
from kirin.ir.attrs.types import (
57
Union as Union,
@@ -20,6 +22,7 @@
2022
Int = PyClass(int)
2123
Float = PyClass(float)
2224
Complex = PyClass(complex)
25+
Number = PyClass(numbers.Number)
2326
String = PyClass(str)
2427
Bool = PyClass(bool)
2528
NoneType = PyClass(type(None))

0 commit comments

Comments
 (0)