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

Method copy_modified

mypy/types.py:1008–1027  ·  view source on GitHub ↗
(
        self,
        *,
        id: Bogus[TypeVarId] = _dummy,
        upper_bound: Bogus[Type] = _dummy,
        default: Bogus[Type] = _dummy,
        min_len: Bogus[int] = _dummy,
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

1006 return self.id == other.id and self.min_len == other.min_len
1007
1008 def copy_modified(
1009 self,
1010 *,
1011 id: Bogus[TypeVarId] = _dummy,
1012 upper_bound: Bogus[Type] = _dummy,
1013 default: Bogus[Type] = _dummy,
1014 min_len: Bogus[int] = _dummy,
1015 **kwargs: Any,
1016 ) -> TypeVarTupleType:
1017 return TypeVarTupleType(
1018 self.name,
1019 self.fullname,
1020 self.id if id is _dummy else id,
1021 self.upper_bound if upper_bound is _dummy else upper_bound,
1022 self.tuple_fallback,
1023 self.default if default is _dummy else default,
1024 line=self.line,
1025 column=self.column,
1026 min_len=self.min_len if min_len is _dummy else min_len,
1027 )
1028
1029
1030class UnboundType(ProperType):

Callers

nothing calls this directly

Calls 1

TypeVarTupleTypeClass · 0.85

Tested by

no test coverage detected