Skip to content

Commit 615a19e

Browse files
committed
Fixed type annotation for materials find.
1 parent cf005db commit 615a19e

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

doc/source/migrations/migrate0_1.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -236,17 +236,3 @@ In MontePy 1.x
236236

237237

238238

239-
240-
241-
242-
243-
244-
245-
246-
247-
248-
249-
250-
251-
252-

montepy/data_inputs/material.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ def slicer(val):
10981098
@args_checked
10991099
def find(
11001100
self,
1101-
name: str = None,
1101+
name: NuclideLike = None,
11021102
element: Element | str | ty.Integral | slice = None,
11031103
A: ty.PositiveInt | slice = None,
11041104
meta_state: MetaState | slice = None,
@@ -1190,7 +1190,7 @@ def find(
11901190
11911191
Parameters
11921192
----------
1193-
name : str
1193+
name : NuclideLike
11941194
The name to pass to Nuclide to search by a specific Nuclide.
11951195
If an element name is passed this will only match elemental
11961196
nuclides.

0 commit comments

Comments
 (0)