Skip to content

Conversation

PeterJCLaw
Copy link

The code itself documents that only a GraphQLBackend is needed here, so relax the type annotation to match. Currently the annotation prevents callers setting any of the other types of backend as the default.

The code itself documents that only a GraphQLBackend is needed
here, so relax the type annotation to match. Currently the
annotation prevents callers setting any of the other types of
backend as the default.
@PeterJCLaw PeterJCLaw changed the title Make set_default_backend type annotation more generous Make default_backend type annotation more generous Feb 18, 2020
@PeterJCLaw
Copy link
Author

@Cito (randomly selected): this is my first contribution to this project, is there anything I need to do/can help with to help get this merged? (I couldn't see a contributing guide in the repo)

@Cito Cito closed this Mar 14, 2020
@Cito
Copy link
Member

Cito commented Mar 14, 2020

@PeterJCLaw Just so you understand the situation. This repository is only for the legacy branch of graphql-core (v2) and not actively maintained any more. The current version of graphql-core (v3) is in the graphql-core-next repository.

@PeterJCLaw
Copy link
Author

Oh, perhaps you could make that clearer in the README?
I appreciate that graphql-core-next is seen as the longer term future, however I'm a little surprised by this response given that this repo does still seem to be getting releases (notably the addition of type annotations themselves in December, which created the bug this PR fixes).

@Cito
Copy link
Member

Cito commented Mar 14, 2020

@PeterJCLaw The type annotations were already added 2 years ago by @syrusakbary. It was only the py.typed flag was added in December. But you're right, renaming the repo and updating the README is long overdue. Will try to push this forward today.

@Cito
Copy link
Member

Cito commented Mar 14, 2020

Ok, the repositories have been renamed now. GraphQL-core 2 is now graphql-core-legacy and GraphQL-core 3 is graphql-core. I also update the READMEs to better reflect this.

@Cito
Copy link
Member

Cito commented Mar 14, 2020

@PeterJCLaw forgot to thank you for contributing! Added issue templates now to make the experience a bit better for newcomers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants