generated from jCloud/repository-template
style: format source code using Ruff
This commit is contained in:
41 files changed
+6061
-5670
No files matched your search
@@ -15,17 +15,16 @@
|
||||
from enum import Enum
|
||||
import docstring_parser
|
||||
|
||||
__all__ = [
|
||||
'PythonDocstring'
|
||||
]
|
||||
__all__ = ['PythonDocstring']
|
||||
|
||||
|
||||
class PythonDocstring:
|
||||
'''
|
||||
"""
|
||||
Represents a Python docstring.
|
||||
|
||||
:param docstring: The docstring as a string.
|
||||
:type docstring: str
|
||||
'''
|
||||
"""
|
||||
|
||||
def __init__(self, docstring: str) -> None:
|
||||
self.docstring = docstring
|
||||
@@ -39,11 +38,11 @@ class PythonDocstring:
|
||||
return self.docstring == value.docstring
|
||||
|
||||
def parse(self) -> docstring_parser.Docstring:
|
||||
'''
|
||||
"""
|
||||
Parses the docstring.
|
||||
|
||||
:return: The parsed docstring.
|
||||
:rtype: docstring_parser.Docstring
|
||||
'''
|
||||
"""
|
||||
|
||||
return docstring_parser.parse(self.docstring)
|
||||
Reference in new issue
Block a user