Skip to content

Commit 7105be2

Browse files
Expose package version 1.5.0
1 parent 967a6fd commit 7105be2

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

src/nns/__init__.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from nns.pm_matrix import pm_matrix as pm_matrix
66

7-
__version__ = "1.4.0"
7+
__version__ = "1.5.0"
88

99
_EXPORTS = {
1010
"BoostResult": ("nns.boost", "BoostResult"),
@@ -78,16 +78,3 @@
7878
"upm_var": ("nns.var", "upm_var"),
7979
"var_pm": ("nns.classical", "var_pm"),
8080
}
81-
82-
__all__ = sorted((*_EXPORTS, "pm_matrix"))
83-
84-
85-
def __getattr__(name: str) -> Any:
86-
if name not in _EXPORTS:
87-
raise AttributeError(f"module 'nns' has no attribute {name!r}")
88-
module_name, attr_name = _EXPORTS[name]
89-
from importlib import import_module
90-
91-
value = getattr(import_module(module_name), attr_name)
92-
globals()[name] = value
93-
return value

0 commit comments

Comments
 (0)