-
-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
examples/petstore/api/__init__.py
Outdated
|
||
|
||
async def list_pets( | ||
tags: t.Optional[list] = None, |
There was a problem hiding this comment.
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.
examples/mypy.ini
Outdated
@@ -0,0 +1,5 @@ | |||
[mypy] | |||
plugins = axion.mypy, pydantic.mypy |
There was a problem hiding this comment.
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 Report
@@ 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.
|
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.
bf42e4d
to
50e4408
Compare
This provides a basic Petstore example.
Needed-By: #228