Skip to content

Added type hints to delegation pattern - #326

Merged
faif merged 1 commit into
faif:masterfrom
rednafi:master
Jun 18, 2020
Merged

Added type hints to delegation pattern#326
faif merged 1 commit into
faif:masterfrom
rednafi:master

Conversation

@rednafi

@rednafi rednafi commented Jun 18, 2020

Copy link
Copy Markdown
Contributor

Delegation pattern can be much easier to understand with type annotations. It doesn't affect the tests. Tested on python 3.6, 3,7 and 3.8. I also suggest adding type hints gradually to other examples too. This can make the intents of the code snippets much clearer.

Also fixed some minor formatting issues (Adding 2 empty lines after import, double quoting the strings everywhere etc.)

@faif
faif merged commit ce2c40f into faif:master Jun 18, 2020
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