Skip to content

Commit

Permalink
Resolving linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jlreitz-amazon committed Jan 19, 2024
1 parent 41c295c commit cd22c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nunavut/lang/cpp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ def needs_vla_init_args(instance: pydsdl.Any, special_method: SpecialMethod) ->
)


def needs_variant_init_args(composite_subtype: CompositeSubType, language: Language) -> bool:
def needs_variant_init_args(composite_subtype: CompositeSubType) -> bool:
return composite_subtype == CompositeSubType.Union


Expand All @@ -1008,7 +1008,7 @@ def prepare_initializer_args(
rhs: str = ""
leading_args: typing.List[str] = []
trailing_args: typing.List[str] = []
if needs_variant_init_args(composite_subtype, language):
if needs_variant_init_args(composite_subtype):
leading_args.append(
f"nunavut::support::in_place_index_t<VariantType::IndexOf::{language.filter_id(instance)}>{{}}"
)
Expand Down

0 comments on commit cd22c95

Please sign in to comment.