Python
supports many programmer from variety of programming background.
Therefore you might found some style adopted from others programming languages
Here are some of style that I recommend everybody follow
print(f"var: {var}")
. Use literal string interpolationlogger.info
. UserPython
logger module do not useprint
def mtl_request(data: typing.Dict, headers: typing.Dict, endpoint: str = 'DOPA'):
Add type hint- Avoid
if else
usekey: value
from dict