(spec: ty.Optional[match_spec_t[AnyStr]])
Assist the type checker by narrowing the number of places accepting Optional.
Assist the type checker by narrowing the number of places accepting Optional.
Assist the type checker by narrowing the number of places accepting Optional .
def _require_spec(spec: ty.Optional[match_spec_t[AnyStr]]) -> match_spec_t[AnyStr]:
	"""
	Assist the type checker by narrowing the number of places accepting Optional.
	"""

	if spec is None:
		return MatchAll()
	else:
		return spec
def _require_spec ( spec : ty . Optional [ match_spec_t [ AnyStr ] ] ) -> match_spec_t [ AnyStr ] : if spec is None : return MatchAll ( ) else : return spec