MCPcopy Index your code
hub / github.com/python/mypy / add_fixture_note

Method add_fixture_note

mypy/messages.py:2550–2558  ·  view source on GitHub ↗
(self, fullname: str, ctx: Context)

Source from the content-addressed store, hash-verified

2548 self.note(note, context, code=msg.code)
2549
2550 def add_fixture_note(self, fullname: str, ctx: Context) -> None:
2551 self.note(f'Maybe your test fixture does not define "{fullname}"?', ctx)
2552 if fullname in SUGGESTED_TEST_FIXTURES:
2553 self.note(
2554 "Consider adding [builtins fixtures/{}] to your test description".format(
2555 SUGGESTED_TEST_FIXTURES[fullname]
2556 ),
2557 ctx,
2558 )
2559
2560 def annotation_in_unchecked_function(self, context: Context) -> None:
2561 self.note(

Callers 2

name_not_definedMethod · 0.80

Calls 2

noteMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected