You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Heyho,
I tried to use your pedantic_class decorator on a class with alot of methods and documentation.
Somewhere in this class in a docstring syntax error. But I cant find it because the error messages doesnt show any function name or text snipped or line of code.
Example of a class containing two function. One with a correct docstring syntax and one without. But of course, in a larger class it is a miracle to find the syntax error - or you have to check every method with pedantic :(
frompedanticimportpedantic_class@pedantic_classclassFoo:
def__init__(self, a: int) ->None:
self.a=intdeffunc(self, b:str) ->str:
""" Function with docstring syntax error below. Args: b (str): simple string Returns: str: simple string """returnbdefbunk(self) ->int:
''' Function with correct docstring. Returns: int: 42 '''return42if__name__=='__main__':
foo=Foo(a=10)
foo.func(b='bar')
The error log is quite large. I only copy the featureless last lines:
Heyho,
I tried to use your pedantic_class decorator on a class with alot of methods and documentation.
Somewhere in this class in a docstring syntax error. But I cant find it because the error messages doesnt show any function name or text snipped or line of code.
Example of a class containing two function. One with a correct docstring syntax and one without. But of course, in a larger class it is a miracle to find the syntax error - or you have to check every method with pedantic :(
The error log is quite large. I only copy the featureless last lines:
The text was updated successfully, but these errors were encountered: