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
I really like these new rules, they provide a lot of extra guardrails for docstrings!
When trying to start using rule DOC202 I ran into a bug. When defining an abstract method, the rule raises an error, because nothing is returned (which makes sense, since it's an empty method, the real code is in the subclasses).
As a small example, an error is raised for this method:
@property@abc.abstractmethoddefrealised_prices(self) ->pd.DataFrame:
""" The realised prices of the market. Returns: The realised prices as a DataFrame """
I really like these new rules, they provide a lot of extra guardrails for docstrings!
When trying to start using rule
DOC202
I ran into a bug. When defining an abstract method, the rule raises an error, because nothing is returned (which makes sense, since it's an empty method, the real code is in the subclasses).As a small example, an error is raised for this method:
Originally posted by @RubenVanEldik in #12434 (comment)
The text was updated successfully, but these errors were encountered: