Skip to content

Commit c0ea048

Browse files
committed
Don't use a property for formatter names
1 parent 0cd29ec commit c0ea048

File tree

1 file changed

+6
-8
lines changed
  • pydocstringformatter/_formatting

1 file changed

+6
-8
lines changed

pydocstringformatter/_formatting/base.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ class Formatter:
2626
Default is always ran.
2727
"""
2828

29-
@property
30-
@abc.abstractmethod
31-
def name(self) -> str:
32-
"""Name of the Formatter.
29+
name: str
30+
"""Name of the Formatter.
3331
34-
This will be used to create argparse options when added to
35-
'pydocstringformatter.formatting.FORMATTERS'. Therefore, it is
36-
user-facing and should be chosen carefully.
37-
"""
32+
This will be used to create argparse options when added to
33+
'pydocstringformatter.formatting.FORMATTERS'. Therefore, it is
34+
REQUIRED, user-facing and should be chosen carefully.
35+
"""
3836

3937
@property
4038
def activate_option(self) -> str:

0 commit comments

Comments
 (0)