Skip to content

Commit

Permalink
fix:__repr__ in TimestampType
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshi-Egawa committed Jan 25, 2025
1 parent 85cb3c7 commit 64b2ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def __init__(self, timezone: TimestampTimeZone = TimestampTimeZone.DEFAULT) -> N
self.tz = timezone #: Timestamp variations

def __repr__(self) -> str:
tzinfo = f"tz={self.tz}" if self.tz != TimestampTimeZone.DEFAULT else ""
tzinfo = f"timezone=TimestampTimeZone('{self.tz}')" if self.tz != TimestampTimeZone.DEFAULT else ""
return f"TimestampType({tzinfo})"


Expand Down

0 comments on commit 64b2ef6

Please sign in to comment.