Skip to content

Commit 6cc4663

Browse files
coderabbitai[bot]CodeRabbit
andauthored
fix: apply CodeRabbit auto-fixes
Fixed 2 file(s) based on 1 unresolved review comment. Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
1 parent d175557 commit 6cc4663

2 files changed

Lines changed: 22 additions & 18 deletions

File tree

src/structuretoolkit/_version.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
1-
# file generated by setuptools-scm
1+
# file generated by vcs-versioning
22
# don't change, don't track in version control
3+
from __future__ import annotations
34

4-
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5-
6-
TYPE_CHECKING = False
7-
if TYPE_CHECKING:
8-
from typing import Tuple, Union
9-
10-
VERSION_TUPLE = Tuple[Union[int, str], ...]
11-
else:
12-
VERSION_TUPLE = object
5+
__all__ = [
6+
"__version__",
7+
"__version_tuple__",
8+
"version",
9+
"version_tuple",
10+
"__commit_id__",
11+
"commit_id",
12+
]
1313

1414
version: str
1515
__version__: str
16-
__version_tuple__: VERSION_TUPLE
17-
version_tuple: VERSION_TUPLE
16+
__version_tuple__: tuple[int | str, ...]
17+
version_tuple: tuple[int | str, ...]
18+
commit_id: str | None
19+
__commit_id__: str | None
20+
21+
__version__ = version = '0.1.dev1+gd17555710.d20260403'
22+
__version_tuple__ = version_tuple = (0, 1, 'dev1', 'gd17555710.d20260403')
1823

19-
__version__ = version = "0.0.1"
20-
__version_tuple__ = version_tuple = (0, 0, 1)
24+
__commit_id__ = commit_id = None

src/structuretoolkit/build/materialsproject.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ def search(
1010
"""
1111
Search the database for all structures matching the given query.
1212
13-
Note that `chemsys` takes distint values for unaries, binaries and so! A query with `chemsys=["Fe", "O"]` will
14-
return iron structures and oxygen structures, but no iron oxide structures. Similarily `chemsys=["Fe-O"]` will
13+
Note that `chemsys` takes distinct values for unaries, binaries and so! A query with `chemsys=["Fe", "O"]` will
14+
return iron and oxygen structures but not iron oxide. Similarly `chemsys=["Fe-O"]` will
1515
not return unary structures.
1616
1717
All keyword arguments for filtering from the original API are supported. See the
@@ -37,7 +37,7 @@ def search(
3737
3838
Args:
3939
chemsys (str, list of str): confine search to given elements; either an element symbol or multiple element
40-
symbols seperated by dashes; if a list of strings is given return structures matching either of them
40+
symbols separated by dashes; if a list of strings is given return structures matching either of them
4141
fields (iterable of str): pass as `fields` to :meth:`mp_api.MPRester.summary.search` to request additional
4242
database entries beyond the structure
4343
api_key (str, optional): if your API key is not exported in the environment flag MP_API_KEY, pass it here
@@ -135,4 +135,4 @@ def by_id(
135135
conventional_unit_cell=conventional_unit_cell,
136136
)
137137
)
138-
]
138+
]

0 commit comments

Comments
 (0)