Skip to content

Commit febd0e4

Browse files
committed
Make from_str a staticmethod
cls is never used.
1 parent 3366c85 commit febd0e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

curtsies/formatstring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ def __init__(self, *components: Chunk) -> None:
290290
self._s: Optional[str] = None
291291
self._width: Optional[int] = None
292292

293-
@classmethod
294-
def from_str(cls, s: str) -> "FmtStr":
293+
@staticmethod
294+
def from_str(s: str) -> "FmtStr":
295295
r"""
296296
Return a FmtStr representing input.
297297

0 commit comments

Comments
 (0)