Skip to content

Commit

Permalink
refactro: removed unused
Browse files Browse the repository at this point in the history
  • Loading branch information
doctrino committed Aug 14, 2024
1 parent e44d68f commit 1df513a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cognite/pygen/_core/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,10 +647,6 @@ def generate_data_class_file(self, is_pydantic_v2: bool) -> str:
else:
raise ValueError(f"Unknown data class {type(self.data_class)}")

def create_start_node_set(group: list[EdgeAPIClass]) -> str:
joined = ", ".join([g.start_class.write_name for g in group])
return f"{{{joined}}}"

if is_pydantic_v2 and self.data_class.has_any_field_model_prefix:
names = ", ".join(field.name for field in self.data_class.fields if field.name.startswith("name"))
warnings.warn(
Expand Down

0 comments on commit 1df513a

Please sign in to comment.