Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Example petstore #216

Merged
merged 2 commits into from
Jan 29, 2020
Merged

Example petstore #216

merged 2 commits into from
Jan 29, 2020

Conversation

kornicameister
Copy link
Owner

@kornicameister kornicameister commented Jan 22, 2020

This provides a basic Petstore example.
Needed-By: #228

@kornicameister kornicameister self-assigned this Jan 22, 2020


async def list_pets(
tags: t.Optional[list] = None,
Copy link
Owner Author

Choose a reason for hiding this comment

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

it actually should be t.Optional[t.List[str]] but "axion" decided that it should be t.Optional[list] which seems dumb.
Will create issue for that.

@@ -0,0 +1,5 @@
[mypy]
plugins = axion.mypy, pydantic.mypy
Copy link
Owner Author

Choose a reason for hiding this comment

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

Yeah, it uses the plugin which is being developed on top of example to see how much of handler runtime analysis can be replaced with static type checking.

@codecov
Copy link

codecov bot commented Jan 22, 2020

Codecov Report

Merging #216 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #216   +/-   ##
=======================================
  Coverage   99.78%   99.78%           
=======================================
  Files          26       26           
  Lines        1383     1383           
=======================================
  Hits         1380     1380           
  Misses          3        3

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update efb5fc5...50e4408. Read the comment docs.

kornicameister and others added 2 commits January 29, 2020 08:16
Provides a foundation for a first actual example of what `axion` is
capable of doing. This example will intentionally be left unfinished to
facilitate `mypy` plugin development and bug hunting.
@kornicameister kornicameister marked this pull request as ready for review January 29, 2020 07:21
@kornicameister kornicameister merged commit 2d4e379 into master Jan 29, 2020
@kornicameister kornicameister deleted the example_petstore branch January 29, 2020 07:28
This was referenced Jan 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant