Add Domain() to top-level imports for lalib
Some checks failed
audit / audit (push) Has been cancelled
docs / docs (push) Has been cancelled
lint / lint (push) Has been cancelled
test-coverage / test-coverage (push) Has been cancelled
test-docstrings / test-docstrings (push) Has been cancelled
tests / test-3.10 (push) Has been cancelled
tests / test-3.11 (push) Has been cancelled
tests / test-3.12 (push) Has been cancelled
tests / test-3.13 (push) Has been cancelled
tests / test-3.9 (push) Has been cancelled

This commit is contained in:
Alexander Hess 2024-10-20 02:45:41 +02:00
parent 4a5e316d0c
commit aeca30b72e
Signed by: alexander
GPG key ID: 344EA5AB10D868E0

View file

@ -22,6 +22,7 @@ one
from importlib import metadata from importlib import metadata
from lalib import domains
from lalib import elements from lalib import elements
from lalib import fields from lalib import fields
@ -41,17 +42,21 @@ else:
del pkg_info del pkg_info
Domain = domains.Domain
gf2, one, zero = elements.gf2, elements.one, elements.zero gf2, one, zero = elements.gf2, elements.one, elements.zero
Q, R, C, GF2 = fields.Q, fields.R, fields.C, fields.GF2 Q, R, C, GF2 = fields.Q, fields.R, fields.C, fields.GF2
del domains
del elements del elements
del fields del fields
del metadata del metadata
__all__ = ( __all__ = (
"Domain",
"gf2", "gf2",
"one", "one",
"zero", "zero",