Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Sep 10, 2024
1 parent 1b8d71a commit fc0d191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

import fern.ir.resources as ir_types
from fern.generator_exec import GeneratorConfig
from ordered_set import OrderedSet

from fern_python.codegen import AST, Filepath
from fern_python.declaration_referencer import AbstractDeclarationReferencer
from fern_python.generators.pydantic_model.custom_config import UnionNamingVersions
from fern_python.source_file_factory.source_file_factory import SourceFileFactory
from ordered_set import OrderedSet

from ..core_utilities import CoreUtilities

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import fern.ir.resources as ir_types
from fern.generator_exec import GeneratorConfig
from ordered_set import OrderedSet

from fern_python.codegen import AST, Filepath
from fern_python.declaration_referencer import AbstractDeclarationReferencer
from fern_python.generators.pydantic_model.custom_config import UnionNamingVersions
from ordered_set import OrderedSet

from .pydantic_generator_context import PydanticGeneratorContext
from .type_reference_to_type_hint_converter import TypeReferenceToTypeHintConverter
Expand Down Expand Up @@ -181,7 +181,7 @@ def does_type_reference_reference_other_type(
def get_referenced_types(self, type_id: ir_types.TypeId) -> Set[ir_types.TypeId]:
declaration = self.ir.types[type_id]
return self.get_referenced_types_of_type_declaration(declaration)

def get_referenced_types_ordered(self, type_id: ir_types.TypeId) -> OrderedSet[ir_types.TypeId]:
declaration = self.ir.types[type_id]
return OrderedSet(list(sorted(self.get_referenced_types_of_type_declaration(declaration))))
Expand Down

0 comments on commit fc0d191

Please sign in to comment.