Skip to content

Commit bb0be96

Browse files
committed
delete __all__ from 3 modules
starred imports are bad practice and should not be encouraged
1 parent e17e2d0 commit bb0be96

File tree

3 files changed

+2
-23
lines changed

3 files changed

+2
-23
lines changed

pymatgen/io/abinit/netcdf.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,6 @@
3535
__status__ = "Development"
3636
__date__ = "Feb 21, 2013M"
3737

38-
__all__ = [
39-
"as_ncreader",
40-
"as_etsfreader",
41-
"NetcdfReader",
42-
"ETSF_Reader",
43-
"NO_DEFAULT",
44-
"structure_from_ncdata",
45-
]
46-
4738

4839
def _asreader(file, cls):
4940
closeit = False

pymatgen/io/abinit/variable.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,8 @@
99

1010
import numpy as np
1111

12-
__all__ = [
13-
"InputVariable",
14-
]
15-
1612
_SPECIAL_DATASET_INDICES = (":", "+", "?")
17-
18-
_DATASET_INDICES = "".join(list(string.digits) + list(_SPECIAL_DATASET_INDICES))
19-
20-
_INTERNAL_DATASET_INDICES = ("__s", "__i", "__a")
21-
22-
_SPECIAL_CONVERSION = zip(_INTERNAL_DATASET_INDICES, _SPECIAL_DATASET_INDICES)
23-
13+
_DATASET_INDICES = "".join([*string.digits, *_SPECIAL_DATASET_INDICES])
2414
_UNITS = {
2515
"bohr": 1.0,
2616
"angstrom": 1.8897261328856432,
@@ -47,7 +37,7 @@ def __init__(self, name, value, units="", valperline=3):
4737

4838
# Maximum number of values per line.
4939
self.valperline = valperline
50-
if name in ["bdgw"]:
40+
if name == "bdgw":
5141
self.valperline = 2
5242

5343
if isinstance(self.value, Iterable) and isinstance(self.value[-1], str) and self.value[-1] in _UNITS:

pymatgen/io/res.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232

3333
from pymatgen.core.trajectory import Vector3D
3434

35-
__all__ = ["ResProvider", "AirssProvider", "ResIO", "ResWriter", "ResParseError", "ResError"]
36-
3735

3836
@dataclass(frozen=True)
3937
class AirssTITL:

0 commit comments

Comments
 (0)