Skip to content

Instantly share code, notes, and snippets.

@studio3104

studio3104/before.py Secret

Created Feb 10, 2018
Embed
What would you like to do?
pyannotate example before
import requests
def add(a, b):
return a + b
def str_or_none(c):
return c if isinstance(c, str) else None
def call_address_api(zipcode):
return requests.get(f'http://api.zipaddress.net/?zipcode={zipcode}')
def parse_response_json(response):
return response.json()
class Hoge:
def __init__(self):
pass
def sub(self, d, e):
return d - e
def create_hoge_instance():
return Hoge()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.