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
lobster-python reports a duplicated function definition for severity() in the following example:
import dataclasses
@dataclasses.dataclass
class Diagnostic:
_severity: int = dataclasses.field()
@property
def severity(self):
return self._severity
@severity.setter
def severity(self, value: int):
self._severity = value
These are clearly not duplicate functions but separate ones which can both be called on the same instance if Diagnostic. Hence, this case should be fixed within lobster.
since the function tag is built only using self.fqn(), which is probably the function name. A solution might be to consider the entire function signature as the tag.
The text was updated successfully, but these errors were encountered:
lobster-python reports a duplicated function definition for
severity()
in the following example:These are clearly not duplicate functions but separate ones which can both be called on the same instance if Diagnostic. Hence, this case should be fixed within lobster.
The problem might originate from here
lobster/lobster/tools/python/python.py
Lines 197 to 198 in 6bb274e
self.fqn()
, which is probably the function name. A solution might be to consider the entire function signature as the tag.The text was updated successfully, but these errors were encountered: