MCPcopy Create free account
hub / github.com/psf/black / function

Function function

tests/data/simple_cases/comments.py:32–47  ·  view source on GitHub ↗

Docstring comes first. Possibly many lines.

(default=None)

Source from the content-addressed store, hash-verified

30
31
32def function(default=None):
33 """Docstring comes first.
34
35 Possibly many lines.
36 """
37 # FIXME: Some comment about why this function is crap but still in production.
38 import inner_imports
39
40 if inner_imports.are_evil():
41 # Explains why we have this if.
42 # In great detail indeed.
43 x = X()
44 return x.method1() # type: ignore
45
46 # This return is also commented for some reason.
47 return default
48
49
50# Explains why we use global state.

Callers 1

cantfit.pyFile · 0.50

Calls 1

XClass · 0.90

Tested by

no test coverage detected