Skip to content

Commit

Permalink
[skip ci] Particle class - deprecation warnings moved to version 0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-rodrigues authored Mar 24, 2023
1 parent 3e02572 commit 128c8ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/particle/particle/particle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,8 +1240,8 @@ def findall(

@classmethod
@deprecated(
version="0.21",
reason="This method is deprecated and will be removed from version 0.22.0. Use finditer or findall instead.",
version="0.22",
reason="This method is deprecated and will be removed from version 0.23.0. Use finditer or findall instead.",
)
def from_string(cls: type[Self], name: str) -> Self:
"Get a particle from a PDG style name - returns the best match."
Expand All @@ -1252,8 +1252,8 @@ def from_string(cls: type[Self], name: str) -> Self:

@classmethod
@deprecated(
version="0.21",
reason="This method is deprecated and will be removed from version 0.22.0. Use finditer or findall instead.",
version="0.22",
reason="This method is deprecated and will be removed from version 0.23.0. Use finditer or findall instead.",
)
def from_string_list(cls: type[Self], name: str) -> list[Self]:
"Get a list of particles from a PDG style name."
Expand Down

0 comments on commit 128c8ad

Please sign in to comment.