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

Class FormalArgument

mypy/types.py:1888–1906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1886
1887
1888class FormalArgument:
1889 def __init__(self, name: str | None, pos: int | None, typ: Type, required: bool) -> None:
1890 self.name = name
1891 self.pos = pos
1892 self.typ = typ
1893 self.required = required
1894
1895 def __eq__(self, other: object) -> bool:
1896 if not isinstance(other, FormalArgument):
1897 return NotImplemented
1898 return (
1899 self.name == other.name
1900 and self.pos == other.pos
1901 and self.typ == other.typ
1902 and self.required == other.required
1903 )
1904
1905 def __hash__(self) -> int:
1906 return hash((self.name, self.pos, self.typ, self.required))
1907
1908
1909class Parameters(ProperType):

Callers 15

var_argMethod · 0.85
kw_argMethod · 0.85
formal_argumentsMethod · 0.85
argument_by_nameMethod · 0.85
argument_by_positionMethod · 0.85
var_argMethod · 0.85
kw_argMethod · 0.85
formal_argumentsMethod · 0.85
argument_by_nameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…