if param_name in path_param_names:
assert is_scalar_field(
field=param_field
- ), f"Path params must be of one of the supported types"
+ ), "Path params must be of one of the supported types"
if isinstance(param.default, params.Path):
ignore_default = False
else:
self.include_in_schema = include_in_schema
self.response_class = response_class
- assert callable(endpoint), f"An endpoint must be a callable"
+ assert callable(endpoint), "An endpoint must be a callable"
self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
for depends in self.dependencies[::-1]:
self.dependant.dependencies.insert(