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

Method with_flavor

mypy/types.py:807–816  ·  view source on GitHub ↗
(self, flavor: int)

Source from the content-addressed store, hash-verified

805 self.prefix = prefix or Parameters([], [], [])
806
807 def with_flavor(self, flavor: int) -> ParamSpecType:
808 return ParamSpecType(
809 self.name,
810 self.fullname,
811 self.id,
812 flavor,
813 upper_bound=self.upper_bound,
814 default=self.default,
815 prefix=self.prefix,
816 )
817
818 def copy_modified(
819 self,

Callers 1

visit_callable_typeMethod · 0.80

Calls 1

ParamSpecTypeClass · 0.85

Tested by

no test coverage detected