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

Function _is_private_parameter

mypy/stubtest.py:1227–1232  ·  view source on GitHub ↗
(arg: inspect.Parameter)

Source from the content-addressed store, hash-verified

1225
1226
1227def _is_private_parameter(arg: inspect.Parameter) -> bool:
1228 return (
1229 arg.name.startswith("_")
1230 and not arg.name.startswith("__")
1231 and arg.default is not inspect.Parameter.empty
1232 )
1233
1234
1235@verify.register(nodes.FuncItem)

Callers 1

_verify_signatureFunction · 0.85

Calls 1

startswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…