-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* style: Fix linting issues * compat: Remove dict union operator
- Loading branch information
Showing
5 changed files
with
41 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
from .interface import GenomeInfo | ||
from __future__ import annotations | ||
|
||
from . import core | ||
from .interface import GenomeInfo | ||
|
||
for module in [core]: | ||
for name, func in module.__dict__.items(): | ||
if callable(func) and not name.startswith("_"): | ||
setattr(GenomeInfo, name, func) | ||
|
||
__all__ = ["GenomeInfo"] | ||
|
||
|
||
_db: GenomeInfo | None = None | ||
|
||
def connect() -> GenomeInfo: | ||
global _db | ||
if _db is None: | ||
_db = GenomeInfo() | ||
return _db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters