-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
Both mentioned classes have methods called get_json
which return the classes __data
field. This seems odd for two reasons:
- They don't actually return JSON but a dict (if the typing hints in
__init__
are correct). In any case this is a major source of confusion. - All other getters are implemented as properties. (So why not just do the same here?)
azure-functions-python-library/azure/functions/_eventgrid.py
Lines 33 to 34 in 44712a7
def get_json(self) -> typing.Any: | |
return self.__data |
azure-functions-python-library/azure/functions/_eventgrid.py
Lines 86 to 87 in 44712a7
def get_json(self) -> typing.Any: | |
return self.__data |
black-snow
Metadata
Metadata
Assignees
Labels
No labels