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

Method __init__

mypy/suggestions.py:248–272  ·  view source on GitHub ↗
(
        self,
        fgmanager: FineGrainedBuildManager,
        *,
        json: bool,
        no_errors: bool = False,
        no_any: bool = False,
        flex_any: float | None = None,
        use_fixme: str | None = None,
        max_guesses: int | None = None,
    )

Source from the content-addressed store, hash-verified

246 """Engine for finding call sites and suggesting signatures."""
247
248 def __init__(
249 self,
250 fgmanager: FineGrainedBuildManager,
251 *,
252 json: bool,
253 no_errors: bool = False,
254 no_any: bool = False,
255 flex_any: float | None = None,
256 use_fixme: str | None = None,
257 max_guesses: int | None = None,
258 ) -> None:
259 self.fgmanager = fgmanager
260 self.manager = fgmanager.manager
261 self.plugin = self.manager.plugin
262 self.graph = fgmanager.graph
263 self.finder = SourceFinder(self.manager.fscache, self.manager.options)
264
265 self.give_json = json
266 self.no_errors = no_errors
267 self.flex_any = flex_any
268 if no_any:
269 self.flex_any = 1.0
270
271 self.max_guesses = max_guesses or 64
272 self.use_fixme = use_fixme
273
274 def suggest(self, function: str) -> str:
275 """Suggest an inferred type for function."""

Callers

nothing calls this directly

Calls 1

SourceFinderClass · 0.90

Tested by

no test coverage detected