Skip to content

Commit

Permalink
update imports for strawberry 0.236.0
Browse files Browse the repository at this point in the history
  • Loading branch information
novag committed Oct 10, 2024
1 parent f9c09a1 commit 158696a
Show file tree
Hide file tree
Showing 7 changed files with 885 additions and 609 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 24.4.2
hooks:
- id: black
exclude: ^tests/\w+/snapshots/

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.289
rev: v0.5.4
hooks:
- id: ruff
exclude: ^tests/\w+/snapshots/
Expand All @@ -18,13 +18,13 @@ repos:
exclude: (CHANGELOG|TWEET).md

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
rev: v4.0.0-alpha.8
hooks:
- id: prettier
files: '^docs/.*\.mdx?$'

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: check-merge-conflict
Expand All @@ -33,7 +33,7 @@ repos:
- id: check-toml

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
rev: 1.18.0
hooks:
- id: blacken-docs
args: [--skip-errors]
1,464 changes: 870 additions & 594 deletions poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/strawberry_sqlalchemy_mapper/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@
from sqlalchemy.orm import Query, Session
from strawberry import relay
from strawberry.annotation import StrawberryAnnotation
from strawberry.arguments import StrawberryArgument, argument
from strawberry.types.arguments import StrawberryArgument, argument
from strawberry.extensions.field_extension import (
FieldExtension,
)
from strawberry.field import (
from strawberry.types.field import (
_RESOLVER_TYPE,
StrawberryField,
)
from strawberry.permission import BasePermission
from strawberry.relay.exceptions import RelayWrongAnnotationError
from strawberry.relay.types import NodeIterableType
from strawberry.type import (
from strawberry.types.base import (
StrawberryList,
StrawberryOptional,
get_object_definition,
Expand Down
8 changes: 4 additions & 4 deletions src/strawberry_sqlalchemy_mapper/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
from sqlalchemy.sql.type_api import TypeEngine
from strawberry import relay
from strawberry.annotation import StrawberryAnnotation
from strawberry.field import StrawberryField
from strawberry.lazy_type import LazyType
from strawberry.private import is_private
from strawberry.types.field import StrawberryField
from strawberry.types.lazy_type import LazyType
from strawberry.types.private import is_private
from strawberry.scalars import JSON as StrawberryJSON
from strawberry.type import WithStrawberryObjectDefinition, get_object_definition
from strawberry.types.base import WithStrawberryObjectDefinition, get_object_definition
from strawberry.types import Info

from strawberry_sqlalchemy_mapper.exc import (
Expand Down
2 changes: 1 addition & 1 deletion src/strawberry_sqlalchemy_mapper/relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from strawberry import relay
from strawberry.relay.exceptions import NodeIDAnnotationError
from strawberry.relay.types import NodeType
from strawberry.type import StrawberryContainer, get_object_definition
from strawberry.types.base import StrawberryContainer, get_object_definition

if TYPE_CHECKING:
from typing_extensions import Literal, Self
Expand Down
2 changes: 1 addition & 1 deletion src/strawberry_sqlalchemy_mapper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
overload,
)

from strawberry.type import (
from strawberry.types.base import (
StrawberryContainer,
StrawberryType,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from sqlalchemy.dialects.postgresql.array import ARRAY
from sqlalchemy.orm import relationship
from strawberry.scalars import JSON as StrawberryJSON
from strawberry.type import StrawberryOptional
from strawberry.types.base import StrawberryOptional
from strawberry_sqlalchemy_mapper import StrawberrySQLAlchemyMapper


Expand Down

0 comments on commit 158696a

Please sign in to comment.