Skip to content

Commit

Permalink
add small ignore type for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
vankesteren committed Jan 3, 2025
1 parent baf029d commit c956384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metasyn/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def create(self, var_spec: Union[VarSpec, VarSpecAccess]) -> BaseDistribution:
dist_spec.implements, var_spec.var_type,
privacy=BasicPrivacy(), unique=unique)
try:
return dist_class(**dist_spec.parameters)
return dist_class(**dist_spec.parameters) # type: ignore
except TypeError as err:
dist_param = set(signature(dist_class.__init__).parameters) - {"self"} # type: ignore
if "args" in dist_param or "kwargs" in dist_param:
Expand Down

0 comments on commit c956384

Please sign in to comment.