Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 29e359d

Browse files
authored
Merge pull request #2 from hypoport/dev
Merge release 0.1.0
2 parents ccfb72e + ecbb59e commit 29e359d

28 files changed

+64
-26
lines changed

CHANGES.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,9 @@ CHANGES
2525
0.0.4 (2018-04-22)
2626
==================
2727

28-
* some bugfixes
28+
* some bugfixes
29+
30+
0.1.0 (2018-08-03)
31+
==================
32+
33+
* rename package to make it more relatable to the problem it tries to solve
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from collections import namedtuple
22
from typing import Dict
33

4-
from lawip.log import get_logger
4+
from aws_dataclasses.log import get_logger
55

66
LOG = get_logger(__name__)
77

@@ -17,9 +17,11 @@ def parse_intents(slots: Dict[str, Dict[str, str]]) -> Dict[str, IntentSlot]:
1717

1818
class AlexaIntent:
1919
def __init__(self, name: str,
20-
slots: Dict):
20+
**kwargs):
2121
self._name = name
22-
self._slots = parse_intents(slots)
22+
self._slots = parse_intents(kwargs.pop("slots")) if "slots" in kwargs else None
23+
if len(kwargs) > 0:
24+
LOG.warning(f"Got unexpected kwargs in {self.__class__} => {kwargs}")
2325

2426
@classmethod
2527
def from_json(cls, intent: Dict):
@@ -82,12 +84,15 @@ def __init__(self, new: bool,
8284
sessionId: str,
8385
user: Dict[str, str],
8486
application: Dict[str, str],
85-
attributes: Dict = None):
87+
attributes: Dict = None,
88+
**kwargs):
8689
self._new = new
8790
self._session_id = sessionId
8891
self._attributes = attributes
8992
self._user = AlexaSkillUser(**user)
9093
self._application = AlexaSkillApplication(**application)
94+
if len(kwargs) > 0:
95+
LOG.warning(f"Unerwartete keyword-argumente gefunden in {self.__class__} => {kwargs}")
9196

9297
@classmethod
9398
def from_json(cls, session):
@@ -115,7 +120,7 @@ def application(self) -> AlexaSkillApplication:
115120

116121

117122
class AlexaSkillContext:
118-
def __init__(self, AudioPlayer, System, **kwargs):
123+
def __init__(self, **kwargs):
119124
pass
120125

121126

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)