-
-
Save studio3104/b72c47305073006635367a5bccb64907 to your computer and use it in GitHub Desktop.
pyannotate example before
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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