vltr / sanic-boom
Showing 1 of 1 files from the diff.

@@ -1,14 +1,13 @@
Loading
1 1
import inspect
2 2
import json
3 +
import sys
3 4
import typing as t
4 5
import uuid
5 -
import sys
6 6
7 7
from sanic.response import text
8 8
9 9
from sanic_boom import Component, ComponentCache
10 10
11 -
12 11
try:  # noqa
13 12
    from ujson import loads as json_loads
14 13
except ImportError:  # noqa
@@ -70,9 +69,8 @@
Loading
70 69
    async def get(self, request, param: inspect.Parameter, body, track_id):
71 70
        inferred_cls = param.annotation.__args__[0]
72 71
73 -
        if (
74 -
            inspect.isclass(inferred_cls)
75 -
            and issubclass(inferred_cls, BaseParser)
72 +
        if inspect.isclass(inferred_cls) and issubclass(
73 +
            inferred_cls, BaseParser
76 74
        ):  # noqa
77 75
            return inferred_cls(body=body, track_id=track_id)
78 76
        else:  # noqa
Files Coverage
src/sanic_boom 100.00%
tests 100.00%
Project Totals (22 files) 100.00%
Notifications are pending CI completion. Waiting for GitHub's status webhook to queue notifications. Push notifications now.
15.3
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py37
15.1
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux
TOXENV=py35

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading