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

Method concrete_only_call

mypy/messages.py:2106–2111  ·  view source on GitHub ↗
(self, typ: Type, context: Context)

Source from the content-addressed store, hash-verified

2104 )
2105
2106 def concrete_only_call(self, typ: Type, context: Context) -> None:
2107 self.fail(
2108 f"Only concrete class can be given where {format_type(typ, self.options)} is expected",
2109 context,
2110 code=codes.TYPE_ABSTRACT,
2111 )
2112
2113 def cannot_use_function_with_type(
2114 self, method_name: str, type_name: str, context: Context

Callers 1

check_argMethod · 0.80

Calls 2

failMethod · 0.95
format_typeFunction · 0.85

Tested by

no test coverage detected