Skip to content

Add type hints - #82

Merged
matiasb merged 1 commit into
matiasb:masterfrom
glacials:add-type-hints
Aug 4, 2021
Merged

Add type hints#82
matiasb merged 1 commit into
matiasb:masterfrom
glacials:add-type-hints

Conversation

@glacials

Copy link
Copy Markdown
Contributor

While debugging my own code I found it useful to have more insight into what types I was getting, so I added type hints. These are in the Python 2 friendly style, using comments. These are picked up by type hinters, linters, language servers, etc. but don't break compatibility with Python 2 like the colon syntax does.

Example:

image

Adds type hints in the Python 2 friendly style, using comments. These
are picked up by type hinters, linters, language servers, etc. but don't
break compatibility with Python 2 like the colon syntax does.
@matiasb

matiasb commented Aug 4, 2021

Copy link
Copy Markdown
Owner

Nice, I like it! Thanks 👍
Merging and hopefully doing the pending release including these changes too.

@matiasb
matiasb merged commit 0b3bdae into matiasb:master Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants