We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f739901 commit ebb3397Copy full SHA for ebb3397
pydocstringformatter/run.py
@@ -48,10 +48,9 @@ def _format_file(self, filename: Path) -> bool:
48
for index, tokeninfo in enumerate(tokens):
49
new_tokeninfo = tokeninfo
50
51
- formatter_options = vars(self.config)
52
if utils._is_docstring(new_tokeninfo, tokens[index - 1]):
53
for formatter in formatting.FORMATTERS:
54
- if formatter_options[formatter.name]:
+ if getattr(self.config, formatter.name):
55
new_tokeninfo = formatter.treat_token(new_tokeninfo)
56
changed_tokens.append(new_tokeninfo)
57
0 commit comments