Skip to content

Commit

Permalink
Add AnyType schema
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Aug 31, 2023
1 parent df7c97e commit b862426
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/peakrdl/config/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class Date(_SimpleType):
class Time(_SimpleType):
TYPE = datetime.time

class AnyType(Schema):
def extract(self, data: Any, path: str, err_ctx: str) -> Any:
return data

#-------------------------------------------------------------------------------
# Aggregate datatypes
#-------------------------------------------------------------------------------
Expand Down

0 comments on commit b862426

Please sign in to comment.