-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add type annotations to the python codebase (#283)
* Add mypy config * Add some type annotations * Add types to python parser * Fix types * Add more type declarations * Add missing type annotations in `stream/*.py` * WIP start typing ast_builder and ast_node * Finish typing ast_builder and ast_node * Add type annotations for `dialect.py` * Add type annotations for `errors.py` * Add type annotations for `gherkin_line.py` * Remove useless imports * Remove entry added by mistake * Fix annotations for toke_formatter_builder * Fix annotations for token_matcher * Add type annotations for token_scanner * Add missing types to token_matcher_markdown * Add `py.typed` file marker * Sync parser.py * Fully type-annotate the `parser.py` * Location.column is not always present * Fix type error * Fix python3.8 compatibility * Add changelog entry * Remove debugging statement committed by mistake * Fix another python3 compatibility issue * Undo change slipped in by mistake * `Container` -> `Envelope` * Remove unnecessary cast
- Loading branch information
Showing
25 changed files
with
838 additions
and
312 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
.idea/ | ||
.valid-events | ||
|
||
*.iml | ||
*.iml |
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
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
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
Oops, something went wrong.