Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showing off some python features #1

Merged
merged 1 commit into from Oct 22, 2020
Merged

Conversation

niklasf
Copy link
Contributor

@niklasf niklasf commented Oct 21, 2020

No description provided.

@ornicar ornicar merged commit e1aac98 into ornicar:master Oct 22, 2020
@@ -216,7 +214,7 @@ def main() -> None:
else:
node, solution, kind = res
# Compose and print the puzzle
puzzle : Dict[str, Any] = {
puzzle = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, why this? @niklasf

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type hint was required when building the dict in multiple steps, but now that the dict is built from a single literal the type is implied (and a more precise one).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants