Skip to content

Commit

Permalink
Make linter happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
norpadon committed Jun 26, 2024
1 parent 14b0eca commit a76333c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
17 changes: 12 additions & 5 deletions tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@

from attrs import frozen

from wanga.schema.extract import *
from wanga.schema.normalize import *
from wanga.schema.schema import *
from wanga.schema.extract import extract_schema
from wanga.schema.normalize import normalize_annotation, unpack_optional
from wanga.schema.schema import (
CallableSchema,
ObjectField,
ObjectNode,
PrimitiveNode,
SequenceNode,
UndefinedNode,
)


def test_normalize_schema():
Expand Down Expand Up @@ -45,7 +52,7 @@ def test_concretize_schema():


def test_extract_schema():
def foo(x: int, y: str = "hello"):
def foo(x: int, y: str = "hello"): # noqa
pass

foo_schema = CallableSchema(
Expand All @@ -72,7 +79,7 @@ def foo(x: int, y: str = "hello"):

assert extract_schema(foo) == foo_schema

def bar(x: typing.List[int]) -> int:
def bar(x: typing.List[int]) -> int: # noqa
r"""Bar.
Blah blah blah.
Expand Down
2 changes: 1 addition & 1 deletion wanga/schema/normalize.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import collections
import collections.abc
import typing
import typing # noqa: F401
from types import NoneType, UnionType
from typing import Annotated, Union, get_args, get_origin

Expand Down
1 change: 0 additions & 1 deletion wanga/templates/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from .common import *

0 comments on commit a76333c

Please sign in to comment.