Skip to content

Commit

Permalink
More SQL type corrections (#393)
Browse files Browse the repository at this point in the history
* Fixed BrowserFeatures arguments from List to Collection
  • Loading branch information
Stiivi committed Mar 29, 2017
1 parent 053b80d commit dad2c21
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cubes/query/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ class BrowserFeatureAction(Enum):


class BrowserFeatures(object):
actions: List[BrowserFeatureAction]
aggregate_functions: List[str]
post_aggregate_functions: List[str]
actions: Collection[BrowserFeatureAction]
aggregate_functions: Collection[str]
post_aggregate_functions: Collection[str]

def __init__(self,
actions: Optional[List[BrowserFeatureAction]]=None,
aggregate_functions: Optional[List[str]]=None,
post_aggregate_functions: Optional[List[str]]=None) -> None:
actions: Optional[Collection[BrowserFeatureAction]]=None,
aggregate_functions: Optional[Collection[str]]=None,
post_aggregate_functions: Optional[Collection[str]]=None) \
-> None:
self.actions = actions or []
self.aggregate_functions = aggregate_functions or []
self.post_aggregate_functions = post_aggregate_functions or []
Expand Down

0 comments on commit dad2c21

Please sign in to comment.