Files
zenml/venv/lib/python3.9/site-packages/graphene/utils/is_introspection_key.py
Christian Mantha 2ca0b9ef7c star
2026-03-02 19:10:52 -05:00

7 lines
327 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
def is_introspection_key(key):
# from: https://spec.graphql.org/June2018/#sec-Schema
# > All types and directives defined within a schema must not have a name which
# > begins with "__" (two underscores), as this is used exclusively
# > by GraphQLs introspection system.
return str(key).startswith("__")