Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove type equivalences with no outgoing or incoming edges #237

Merged
merged 9 commits into from Mar 29, 2019

Conversation

pmantica1
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Mar 29, 2019

Coverage Status

Coverage increased (+0.01%) to 93.71% when pulling d83d1ff on remove-unmentioned-union-types into eec6f3c on master.

@bojanserafimov bojanserafimov merged commit 4a05842 into master Mar 29, 2019
@bojanserafimov bojanserafimov deleted the remove-unmentioned-union-types branch March 29, 2019 19:24
@@ -21,6 +21,19 @@
)


def _get_referenced_type_equivances(graphql_types, type_equivalence_hints):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

equivances seems like a typo

for _, field in graphql_type.fields.items():
if isinstance(field.type, GraphQLList):
referenced_types.add(field.type.of_type.name)
return {original: union
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style consistency suggestion: we generally prefer this style for multi-line comprehensions:

foo = {
    key: value
    for key, value in stuff
    if key > 0
}

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.

None yet

4 participants