Skip to content

Commit 2325e45

Browse files
committed
Rename plugin to ClientForwardRefsPlugin
1 parent 777b3a5 commit 2325e45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+38
-38
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion

README.md

Lines changed: 1 addition & 1 deletion

ariadne_codegen/contrib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
from .client_forward_refs import ClientForwardRefsPlugin
12
from .extract_operations import ExtractOperationsPlugin
2-
from .no_global_imports import NoGlobalImportsPlugin
33
from .no_reimports import NoReimportsPlugin
44
from .shorter_results import ShorterResultsPlugin
55

66
__all__ = [
77
"ExtractOperationsPlugin",
88
"NoReimportsPlugin",
99
"ShorterResultsPlugin",
10-
"NoGlobalImportsPlugin",
10+
"ClientForwardRefsPlugin",
1111
]

ariadne_codegen/contrib/no_global_imports.py renamed to ariadne_codegen/contrib/client_forward_refs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
TYPE_CHECKING_FLAG: str = "TYPE_CHECKING"
2020

2121

22-
class NoGlobalImportsPlugin(Plugin):
22+
class ClientForwardRefsPlugin(Plugin):
2323
"""Only import types when you call an endpoint needing it"""
2424

2525
def __init__(self, schema: GraphQLSchema, config_dict: Dict) -> None:

tests/main/clients/no_global_imports/expected_client/__init__.py renamed to tests/main/clients/client_forward_refs/expected_client/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
from .async_base_client import AsyncBaseClient
22
from .base_model import BaseModel, Upload
33
from .client import Client
4+
from .client_forward_refs_fragments import (
5+
FragmentWithSingleField,
6+
FragmentWithSingleFieldQueryUnwrapFragment,
7+
ListAnimalsFragment,
8+
ListAnimalsFragmentListAnimals,
9+
)
410
from .exceptions import (
511
GraphQLClientError,
612
GraphQLClientGraphQLError,
@@ -29,12 +35,6 @@
2935
from .list_strings_3 import ListStrings3
3036
from .list_strings_4 import ListStrings4
3137
from .list_type_a import ListTypeA, ListTypeAListOptionalTypeA
32-
from .no_global_imports_fragments import (
33-
FragmentWithSingleField,
34-
FragmentWithSingleFieldQueryUnwrapFragment,
35-
ListAnimalsFragment,
36-
ListAnimalsFragmentListAnimals,
37-
)
3838
from .subscribe_strings import SubscribeStrings
3939
from .unwrap_fragment import UnwrapFragment
4040

0 commit comments

Comments
 (0)