MCPcopy Index your code
hub / github.com/pyinvoke/invoke / inherits_module_from_body

Method inherits_module_from_body

tests/task.py:204–206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

202 class function_like_behavior:
203 # Things that help them eg show up in autodoc easier
204 def inherits_module_from_body(self):
205 mytask = Task(_func, name="funky")
206 assert mytask.__module__ is _func.__module__
207
208 class attributes:
209 def has_default_flag(self):

Callers

nothing calls this directly

Calls 1

TaskClass · 0.90

Tested by

no test coverage detected