Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhnewatiya-plivo committed May 16, 2024
1 parent 59c7511 commit 0b5d2d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plivo/utils/template.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from plivo.utils.validators import *
from location import Location
from plivo.utils.location import *

class Parameter:
@validate_args(
Expand All @@ -9,7 +9,7 @@ class Parameter:
payload=[optional(of_type_exact(str))],
currency=[optional(of_type_exact(dict))],
date_time=[optional(of_type_exact(dict))],
location=[optional(of_type_exact(dict))],
location=[optional(validate_dict_items(Location))]
)
def __init__(self, type, text=None, media=None, payload=None, currency=None, date_time=None, location=None):
self.type = type
Expand All @@ -18,7 +18,7 @@ def __init__(self, type, text=None, media=None, payload=None, currency=None, dat
self.payload = payload
self.currency = Currency(**currency) if currency else None
self.date_time = DateTime(**date_time) if date_time else None
self.location = Location(**location) if location else None
self.location = location

class Component:
@validate_args(
Expand Down

0 comments on commit 0b5d2d9

Please sign in to comment.