Skip to content

Commit

Permalink
Merge pull request #19 from christianhelle/qodana/quick-fixes-6914657805
Browse files Browse the repository at this point in the history
🤖 Apply quick-fixes by Qodana
  • Loading branch information
christianhelle authored Nov 18, 2023
2 parents 47ab0fe + d06a0e0 commit f9de893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autofaker/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def create(
)
if is_date_type(type_name):
return TypeDataGenerator.create_datetime(
type_name, field_name, use_fake_data
type_name
)
if type_name == "list":
return ListGenerator(t)
Expand All @@ -35,7 +35,7 @@ def create(
)

@staticmethod
def create_datetime(type_name, field_name: str = None, use_fake_data: bool = False):
def create_datetime(type_name):
if type_name == "datetime":
return DatetimeGenerator()
if type_name == "date":
Expand Down

0 comments on commit f9de893

Please sign in to comment.