Skip to content

Commit c96f269

Browse files
authored
Optimize functions decorator (#129)
1 parent 45e16bc commit c96f269

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure/functions/decorators/function_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def get_bindings(self) -> List[Binding]:
100100
return self._bindings
101101

102102
def get_raw_bindings(self) -> List[str]:
103-
return [json.dumps(i, cls=StringifyEnumJsonEncoder) for i in
104-
self.get_bindings_dict()["bindings"]]
103+
return [json.dumps(b.get_dict_repr(), cls=StringifyEnumJsonEncoder)
104+
for b in self._bindings]
105105

106106
def get_bindings_dict(self) -> Dict:
107107
"""Get dictionary representation of the bindings of the function.

0 commit comments

Comments
 (0)