Skip to content

heed overzealous linter and allow overloaded functions to use pass ( PYL-W0107) #55

@reactive-firewall

Description

@reactive-firewall

namely see:
https://github.com/reactive-firewall/python-repo/blob/master/tests/profiling.py#L136-L139

🤔 just need to add # skipcq: PYL-W0107

def __exit__(self, type, value, traceback):  # skipcq: PYL-W0622
		self.checkpoint(str("finished"))
		pass # skipcq: PYL-W0107

🤔 but assuming there is no FUNCTIONAL (like runtime behavior) difference in any implementation of python (namely 3.7-3.12) it is simpler to just remove the line as there is a function body already. 🤷🏻

Metadata

Metadata

Assignees

No one assigned

    Labels

    LinterAny linter tool or setting file enhancementsPython LangChanges to Python source code

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions