id
int64
1
6.07M
name
stringlengths
1
295
code
stringlengths
12
426k
language
stringclasses
1 value
source_file
stringlengths
5
202
start_line
int64
1
158k
end_line
int64
1
158k
repo
dict
6,069,801
_yaml_add_comment
def _yaml_add_comment(self, comment, key=NoComment): # type: (Any, Optional[Any]) -> None if key is not NoComment: self.yaml_key_comment_extend(key, comment) else: self.ca.comment = comment
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,016
1,021
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,802
_yaml_add_eol_comment
def _yaml_add_eol_comment(self, comment, key): # type: (Any, Any) -> None self._yaml_add_comment(comment, key=key)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,023
1,025
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,803
_yaml_get_columnX
def _yaml_get_columnX(self, key): # type: (Any) -> Any return self.ca.items[key][0].start_mark.column
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,027
1,029
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,804
_yaml_get_column
def _yaml_get_column(self, key): # type: (Any) -> Any column = None sel_idx = None pre, post = key - 1, key + 1 if pre in self.ca.items: sel_idx = pre elif post in self.ca.items: sel_idx = post else: # self.ca.items is not order...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,031
1,050
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,805
_yaml_get_pre_comment
def _yaml_get_pre_comment(self): # type: () -> Any pre_comments = [] # type: List[Any] if self.ca.comment is None: self.ca.comment = [None, pre_comments] else: self.ca.comment[1] = pre_comments return pre_comments
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,052
1,059
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,806
__init__
def __init__(self, values=None): # type: (Any) -> None self.odict = ordereddict() MutableSet.__init__(self) if values is not None: self |= values # type: ignore
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,069
1,074
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,807
_yaml_add_comment
def _yaml_add_comment(self, comment, key=NoComment, value=NoComment): # type: (Any, Optional[Any], Optional[Any]) -> None """values is set to key to indicate a value attachment of comment""" if key is not NoComment: self.yaml_key_comment_extend(key, comment) return ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,076
1,085
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,808
_yaml_add_eol_comment
def _yaml_add_eol_comment(self, comment, key): # type: (Any, Any) -> None """add on the value line, with value specified by the key""" self._yaml_add_comment(comment, value=key)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,087
1,090
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,809
add
def add(self, value): # type: (Any) -> None """Add an element.""" self.odict[value] = None
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,092
1,095
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,810
discard
def discard(self, value): # type: (Any) -> None """Remove an element. Do not raise an exception if absent.""" del self.odict[value]
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,097
1,100
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,811
__contains__
def __contains__(self, x): # type: (Any) -> Any return x in self.odict
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,102
1,104
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,812
__iter__
def __iter__(self): # type: () -> Any for x in self.odict: yield x
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,106
1,109
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,813
__len__
def __len__(self): # type: () -> int return len(self.odict)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,111
1,113
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,814
__repr__
def __repr__(self): # type: () -> str return "set({0!r})".format(self.odict.keys())
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,115
1,117
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,815
__init__
def __init__(self, value=None, style=None, tag=None): # type: (Any, Any, Any) -> None self.value = value self.style = style if tag is not None: self.yaml_set_tag(tag)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,122
1,127
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,816
__str__
def __str__(self): # type: () -> Any return self.value
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,129
1,131
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,817
dump_comments
def dump_comments(d, name="", sep=".", out=sys.stdout): # type: (Any, str, str, Any) -> None """ recursively dump comments, all but the toplevel preceded by the path in dotted form x.0.a """ if isinstance(d, dict) and hasattr(d, "ca"): if name: sys.stdout.write("{}\n".format(...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
1,134
1,153
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,818
graphql
async def graphql( schema: GraphQLSchema, source: Union[str, Source], root_value: Any = None, context_value: Any = None, variable_values: Optional[Dict[str, Any]] = None, operation_name: Optional[str] = None, field_resolver: Optional[GraphQLFieldResolver] = None, type_resolver: Optional[...
python
python-3.10.8.amd64/Lib/site-packages/graphql/graphql.py
19
95
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,819
assume_not_awaitable
def assume_not_awaitable(_value: Any) -> bool: """Replacement for isawaitable if everything is assumed to be synchronous.""" return False
python
python-3.10.8.amd64/Lib/site-packages/graphql/graphql.py
98
100
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,820
graphql_sync
def graphql_sync( schema: GraphQLSchema, source: Union[str, Source], root_value: Any = None, context_value: Any = None, variable_values: Optional[Dict[str, Any]] = None, operation_name: Optional[str] = None, field_resolver: Optional[GraphQLFieldResolver] = None, type_resolver: Optional[G...
python
python-3.10.8.amd64/Lib/site-packages/graphql/graphql.py
103
149
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,821
graphql_impl
def graphql_impl( schema: GraphQLSchema, source: Union[str, Source], root_value: Any, context_value: Any, variable_values: Optional[Dict[str, Any]], operation_name: Optional[str], field_resolver: Optional[GraphQLFieldResolver], type_resolver: Optional[GraphQLTypeResolver], middleware...
python
python-3.10.8.amd64/Lib/site-packages/graphql/graphql.py
152
198
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,822
from_str
def from_str(cls, v: str) -> "VersionInfo": groups = _re_version.match(v).groups() # type: ignore major, minor, micro = map(int, groups[:3]) level = (groups[3] or "")[:1] if level == "a": level = "alpha" elif level == "b": level = "beta" elif leve...
python
python-3.10.8.amd64/Lib/site-packages/graphql/version.py
23
37
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,823
__str__
def __str__(self) -> str: v = f"{self.major}.{self.minor}.{self.micro}" level = self.releaselevel if level and level != "final": level = level[:1] if level == "c": level = "rc" v = f"{v}{level}{self.serial}" return v
python
python-3.10.8.amd64/Lib/site-packages/graphql/version.py
39
47
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,824
is_definition_node
def is_definition_node(node: Node) -> bool: """Check whether the given node represents a definition.""" return isinstance(node, DefinitionNode)
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/predicates.py
31
33
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,825
is_executable_definition_node
def is_executable_definition_node(node: Node) -> bool: """Check whether the given node represents an executable definition.""" return isinstance(node, ExecutableDefinitionNode)
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/predicates.py
36
38
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,826
is_selection_node
def is_selection_node(node: Node) -> bool: """Check whether the given node represents a selection.""" return isinstance(node, SelectionNode)
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/predicates.py
41
43
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,827
is_value_node
def is_value_node(node: Node) -> bool: """Check whether the given node represents a value.""" return isinstance(node, ValueNode)
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/predicates.py
46
48
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,828
is_const_value_node
def is_const_value_node(node: Node) -> bool: """Check whether the given node represents a constant value.""" return is_value_node(node) and ( any(is_const_value_node(value) for value in node.values) if isinstance(node, ListValueNode) else any(is_const_value_node(field.value) for field in...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/predicates.py
51
59
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,829
is_type_node
def is_type_node(node: Node) -> bool: """Check whether the given node represents a type.""" return isinstance(node, TypeNode)
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/predicates.py
62
64
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,830
is_type_system_definition_node
def is_type_system_definition_node(node: Node) -> bool: """Check whether the given node represents a type system definition.""" return isinstance(node, TypeSystemDefinitionNode)
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/predicates.py
67
69
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,831
is_type_definition_node
def is_type_definition_node(node: Node) -> bool: """Check whether the given node represents a type definition.""" return isinstance(node, TypeDefinitionNode)
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/predicates.py
72
74
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,832
is_type_system_extension_node
def is_type_system_extension_node(node: Node) -> bool: """Check whether the given node represents a type system extension.""" return isinstance(node, (SchemaExtensionNode, TypeExtensionNode))
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/predicates.py
77
79
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,833
is_type_extension_node
def is_type_extension_node(node: Node) -> bool: """Check whether the given node represents a type extension.""" return isinstance(node, TypeExtensionNode)
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/predicates.py
82
84
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,834
print_location
def print_location(location: Location) -> str: """Render a helpful description of the location in the GraphQL Source document.""" return print_source_location( location.source, get_location(location.source, location.start) )
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/print_location.py
12
16
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,835
print_source_location
def print_source_location(source: Source, source_location: SourceLocation) -> str: """Render a helpful description of the location in the GraphQL Source document.""" first_line_column_offset = source.location_offset.column - 1 body = "".rjust(first_line_column_offset) + source.body line_index = source_...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/print_location.py
22
65
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,836
print_prefixed_lines
def print_prefixed_lines(*lines: Tuple[str, Optional[str]]) -> str: """Print lines specified like this: ("prefix", "string")""" existing_lines = [ cast(Tuple[str, str], line) for line in lines if line[1] is not None ] pad_len = max(len(line[0]) for line in existing_lines) return "\n".join( ...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/print_location.py
68
77
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,837
is_digit
def is_digit(char: str) -> bool: """Check whether char is a digit For internal use by the lexer only. """ return "0" <= char <= "9"
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/character_classes.py
7
12
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,838
is_letter
def is_letter(char: str) -> bool: """Check whether char is a plain ASCII letter For internal use by the lexer only. """ return "a" <= char <= "z" or "A" <= char <= "Z"
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/character_classes.py
14
19
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,839
is_name_start
def is_name_start(char: str) -> bool: """Check whether char is allowed at the beginning of a GraphQL name For internal use by the lexer only. """ return "a" <= char <= "z" or "A" <= char <= "Z" or char == "_"
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/character_classes.py
21
26
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,840
is_name_continue
def is_name_continue(char: str) -> bool: """Check whether char is allowed in the continuation of a GraphQL name For internal use by the lexer only. """ return ( "a" <= char <= "z" or "A" <= char <= "Z" or "0" <= char <= "9" or char == "_" ...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/character_classes.py
28
38
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,841
is_digit
def is_digit(char: str) -> bool: """Check whether char is a digit For internal use by the lexer only. """ return char.isascii() and char.isdigit()
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/character_classes.py
42
47
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,842
is_letter
def is_letter(char: str) -> bool: """Check whether char is a plain ASCII letter For internal use by the lexer only. """ return char.isascii() and char.isalpha()
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/character_classes.py
49
54
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,843
is_name_start
def is_name_start(char: str) -> bool: """Check whether char is allowed at the beginning of a GraphQL name For internal use by the lexer only. """ return char.isascii() and (char.isalpha() or char == "_")
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/character_classes.py
56
61
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,844
is_name_continue
def is_name_continue(char: str) -> bool: """Check whether char is allowed in the continuation of a GraphQL name For internal use by the lexer only. """ return char.isascii() and (char.isalnum() or char == "_")
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/character_classes.py
63
68
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,845
parse
def parse( source: SourceType, no_location: bool = False, max_tokens: Optional[int] = None, allow_legacy_fragment_variables: bool = False, ) -> DocumentNode: """Given a GraphQL source, parse it into a Document. Throws GraphQLError if a syntax error is encountered. By default, the parser cr...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
73
113
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,846
parse_value
def parse_value( source: SourceType, no_location: bool = False, max_tokens: Optional[int] = None, allow_legacy_fragment_variables: bool = False, ) -> ValueNode: """Parse the AST for a given string containing a GraphQL value. Throws GraphQLError if a syntax error is encountered. This is use...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
116
141
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,847
parse_const_value
def parse_const_value( source: SourceType, no_location: bool = False, max_tokens: Optional[int] = None, allow_legacy_fragment_variables: bool = False, ) -> ConstValueNode: """Parse the AST for a given string containing a GraphQL constant value. Similar to parse_value, but raises a arse error if...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
144
164
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,848
parse_type
def parse_type( source: SourceType, no_location: bool = False, max_tokens: Optional[int] = None, allow_legacy_fragment_variables: bool = False, ) -> TypeNode: """Parse the AST for a given string containing a GraphQL Type. Throws GraphQLError if a syntax error is encountered. This is useful...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
167
192
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,849
__init__
def __init__( self, source: SourceType, no_location: bool = False, max_tokens: Optional[int] = None, allow_legacy_fragment_variables: bool = False, ): source = ( cast(Source, source) if is_source(source) else Source(cast(str, source)) ) se...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
213
228
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,850
parse_name
def parse_name(self) -> NameNode: """Convert a name lex token into a name parse node.""" token = self.expect_token(TokenKind.NAME) return NameNode(value=token.value, loc=self.loc(token))
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
230
233
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,851
parse_document
def parse_document(self) -> DocumentNode: """Document: Definition+""" start = self._lexer.token return DocumentNode( definitions=self.many(TokenKind.SOF, self.parse_definition, TokenKind.EOF), loc=self.loc(start), )
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
237
243
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,852
parse_definition
def parse_definition(self) -> DefinitionNode: """Definition: ExecutableDefinition or TypeSystemDefinition/Extension ExecutableDefinition: OperationDefinition or FragmentDefinition TypeSystemDefinition: SchemaDefinition, TypeDefinition or DirectiveDefinition TypeDefinition: ScalarTypeD...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
262
302
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,853
parse_operation_definition
def parse_operation_definition(self) -> OperationDefinitionNode: """OperationDefinition""" start = self._lexer.token if self.peek(TokenKind.BRACE_L): return OperationDefinitionNode( operation=OperationType.QUERY, name=None, variable_def...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
306
327
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,854
parse_operation_type
def parse_operation_type(self) -> OperationType: """OperationType: one of query mutation subscription""" operation_token = self.expect_token(TokenKind.NAME) try: return OperationType(operation_token.value) except ValueError: raise self.unexpected(operation_token)
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
329
335
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,855
parse_variable_definitions
def parse_variable_definitions(self) -> List[VariableDefinitionNode]: """VariableDefinitions: (VariableDefinition+)""" return self.optional_many( TokenKind.PAREN_L, self.parse_variable_definition, TokenKind.PAREN_R )
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
337
341
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,856
parse_variable_definition
def parse_variable_definition(self) -> VariableDefinitionNode: """VariableDefinition: Variable: Type DefaultValue? Directives[Const]?""" start = self._lexer.token return VariableDefinitionNode( variable=self.parse_variable(), type=self.expect_token(TokenKind.COLON) and se...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
343
354
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,857
parse_variable
def parse_variable(self) -> VariableNode: """Variable: $Name""" start = self._lexer.token self.expect_token(TokenKind.DOLLAR) return VariableNode(name=self.parse_name(), loc=self.loc(start))
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
356
360
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,858
parse_selection_set
def parse_selection_set(self) -> SelectionSetNode: """SelectionSet: {Selection+}""" start = self._lexer.token return SelectionSetNode( selections=self.many( TokenKind.BRACE_L, self.parse_selection, TokenKind.BRACE_R ), loc=self.loc(start), ...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
362
370
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,859
parse_selection
def parse_selection(self) -> SelectionNode: """Selection: Field or FragmentSpread or InlineFragment""" return ( self.parse_fragment if self.peek(TokenKind.SPREAD) else self.parse_field )()
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
372
376
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,860
parse_field
def parse_field(self) -> FieldNode: """Field: Alias? Name Arguments? Directives? SelectionSet?""" start = self._lexer.token name_or_alias = self.parse_name() if self.expect_optional_token(TokenKind.COLON): alias: Optional[NameNode] = name_or_alias name = self.pars...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
378
397
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,861
parse_arguments
def parse_arguments(self, is_const: bool) -> List[ArgumentNode]: """Arguments[Const]: (Argument[?Const]+)""" item = self.parse_const_argument if is_const else self.parse_argument item = cast(Callable[[], ArgumentNode], item) return self.optional_many(TokenKind.PAREN_L, item, TokenKind.PA...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
399
403
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,862
parse_argument
def parse_argument(self, is_const: bool = False) -> ArgumentNode: """Argument[Const]: Name : Value[?Const]""" start = self._lexer.token name = self.parse_name() self.expect_token(TokenKind.COLON) return ArgumentNode( name=name, value=self.parse_value_literal(is_const...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
405
413
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,863
parse_const_argument
def parse_const_argument(self) -> ConstArgumentNode: """Argument[Const]: Name : Value[Const]""" return cast(ConstArgumentNode, self.parse_argument(True))
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
415
417
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,864
parse_fragment
def parse_fragment(self) -> Union[FragmentSpreadNode, InlineFragmentNode]: """Corresponds to both FragmentSpread and InlineFragment in the spec. FragmentSpread: ... FragmentName Directives? InlineFragment: ... TypeCondition? Directives? SelectionSet """ start = self._lexer.token...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
421
442
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,865
parse_fragment_definition
def parse_fragment_definition(self) -> FragmentDefinitionNode: """FragmentDefinition""" start = self._lexer.token self.expect_keyword("fragment") # Legacy support for defining variables within fragments changes # the grammar of FragmentDefinition if self._allow_legacy_fra...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
444
465
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,866
parse_fragment_name
def parse_fragment_name(self) -> NameNode: """FragmentName: Name but not ``on``""" if self._lexer.token.value == "on": raise self.unexpected() return self.parse_name()
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
467
471
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,867
parse_type_condition
def parse_type_condition(self) -> NamedTypeNode: """TypeCondition: NamedType""" self.expect_keyword("on") return self.parse_named_type()
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
473
476
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,868
parse_value_literal
def parse_value_literal(self, is_const: bool) -> ValueNode: method_name = self._parse_value_literal_method_names.get(self._lexer.token.kind) if method_name: # pragma: no cover return getattr(self, f"parse_{method_name}")(is_const) raise self.unexpected() # pragma: no cover
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
491
495
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,869
parse_string_literal
def parse_string_literal(self, _is_const: bool = False) -> StringValueNode: token = self._lexer.token self.advance_lexer() return StringValueNode( value=token.value, block=token.kind == TokenKind.BLOCK_STRING, loc=self.loc(token), )
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
497
504
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,870
parse_list
def parse_list(self, is_const: bool) -> ListValueNode: """ListValue[Const]""" start = self._lexer.token item = partial(self.parse_value_literal, is_const) # noinspection PyTypeChecker return ListValueNode( values=self.any(TokenKind.BRACKET_L, item, TokenKind.BRACKET_R...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
506
514
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,871
parse_object_field
def parse_object_field(self, is_const: bool) -> ObjectFieldNode: start = self._lexer.token name = self.parse_name() self.expect_token(TokenKind.COLON) return ObjectFieldNode( name=name, value=self.parse_value_literal(is_const), loc=self.loc(start) )
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
516
523
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,872
parse_object
def parse_object(self, is_const: bool) -> ObjectValueNode: """ObjectValue[Const]""" start = self._lexer.token item = partial(self.parse_object_field, is_const) return ObjectValueNode( fields=self.any(TokenKind.BRACE_L, item, TokenKind.BRACE_R), loc=self.loc(start)...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
525
532
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,873
parse_int
def parse_int(self, _is_const: bool = False) -> IntValueNode: token = self._lexer.token self.advance_lexer() return IntValueNode(value=token.value, loc=self.loc(token))
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
534
537
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,874
parse_float
def parse_float(self, _is_const: bool = False) -> FloatValueNode: token = self._lexer.token self.advance_lexer() return FloatValueNode(value=token.value, loc=self.loc(token))
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
539
542
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,875
parse_named_values
def parse_named_values(self, _is_const: bool = False) -> ValueNode: token = self._lexer.token value = token.value self.advance_lexer() if value == "true": return BooleanValueNode(value=True, loc=self.loc(token)) if value == "false": return BooleanValueNode...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
544
554
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,876
parse_variable_value
def parse_variable_value(self, is_const: bool) -> VariableNode: if is_const: variable_token = self.expect_token(TokenKind.DOLLAR) token = self._lexer.token if token.kind is TokenKind.NAME: var_name = token.value raise GraphQLSyntaxError( ...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
556
568
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,877
parse_const_value_literal
def parse_const_value_literal(self) -> ConstValueNode: return cast(ConstValueNode, self.parse_value_literal(True))
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
570
571
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,878
parse_directives
def parse_directives(self, is_const: bool) -> List[DirectiveNode]: """Directives[Const]: Directive[?Const]+""" directives: List[DirectiveNode] = [] append = directives.append while self.peek(TokenKind.AT): append(self.parse_directive(is_const)) return directives
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
575
581
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,879
parse_const_directives
def parse_const_directives(self) -> List[ConstDirectiveNode]: return cast(List[ConstDirectiveNode], self.parse_directives(True))
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
583
584
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,880
parse_directive
def parse_directive(self, is_const: bool) -> DirectiveNode: """Directive[Const]: @ Name Arguments[?Const]?""" start = self._lexer.token self.expect_token(TokenKind.AT) return DirectiveNode( name=self.parse_name(), arguments=self.parse_arguments(is_const), ...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
586
594
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,881
parse_type_reference
def parse_type_reference(self) -> TypeNode: """Type: NamedType or ListType or NonNullType""" start = self._lexer.token type_: TypeNode if self.expect_optional_token(TokenKind.BRACKET_L): inner_type = self.parse_type_reference() self.expect_token(TokenKind.BRACKET_...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
598
610
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,882
parse_named_type
def parse_named_type(self) -> NamedTypeNode: """NamedType: Name""" start = self._lexer.token return NamedTypeNode(name=self.parse_name(), loc=self.loc(start))
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
612
615
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,883
parse_type_system_extension
def parse_type_system_extension(self) -> TypeSystemExtensionNode: """TypeSystemExtension""" keyword_token = self._lexer.lookahead() if keyword_token.kind == TokenKind.NAME: method_name = self._parse_type_extension_method_names.get( cast(str, keyword_token.value) ...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
629
638
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,884
peek_description
def peek_description(self) -> bool: return self.peek(TokenKind.STRING) or self.peek(TokenKind.BLOCK_STRING)
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
640
641
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,885
parse_description
def parse_description(self) -> Optional[StringValueNode]: """Description: StringValue""" if self.peek_description(): return self.parse_string_literal() return None
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
643
647
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,886
parse_schema_definition
def parse_schema_definition(self) -> SchemaDefinitionNode: """SchemaDefinition""" start = self._lexer.token description = self.parse_description() self.expect_keyword("schema") directives = self.parse_const_directives() operation_types = self.many( TokenKind.B...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
649
663
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,887
parse_operation_type_definition
def parse_operation_type_definition(self) -> OperationTypeDefinitionNode: """OperationTypeDefinition: OperationType : NamedType""" start = self._lexer.token operation = self.parse_operation_type() self.expect_token(TokenKind.COLON) type_ = self.parse_named_type() return O...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
665
673
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,888
parse_scalar_type_definition
def parse_scalar_type_definition(self) -> ScalarTypeDefinitionNode: """ScalarTypeDefinition: Description? scalar Name Directives[Const]?""" start = self._lexer.token description = self.parse_description() self.expect_keyword("scalar") name = self.parse_name() directives =...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
675
687
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,889
parse_object_type_definition
def parse_object_type_definition(self) -> ObjectTypeDefinitionNode: """ObjectTypeDefinition""" start = self._lexer.token description = self.parse_description() self.expect_keyword("type") name = self.parse_name() interfaces = self.parse_implements_interfaces() dir...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
689
705
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,890
parse_implements_interfaces
def parse_implements_interfaces(self) -> List[NamedTypeNode]: """ImplementsInterfaces""" return ( self.delimited_many(TokenKind.AMP, self.parse_named_type) if self.expect_optional_keyword("implements") else [] )
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
707
713
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,891
parse_fields_definition
def parse_fields_definition(self) -> List[FieldDefinitionNode]: """FieldsDefinition: {FieldDefinition+}""" return self.optional_many( TokenKind.BRACE_L, self.parse_field_definition, TokenKind.BRACE_R )
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
715
719
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,892
parse_field_definition
def parse_field_definition(self) -> FieldDefinitionNode: """FieldDefinition""" start = self._lexer.token description = self.parse_description() name = self.parse_name() args = self.parse_argument_defs() self.expect_token(TokenKind.COLON) type_ = self.parse_type_re...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
721
737
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,893
parse_argument_defs
def parse_argument_defs(self) -> List[InputValueDefinitionNode]: """ArgumentsDefinition: (InputValueDefinition+)""" return self.optional_many( TokenKind.PAREN_L, self.parse_input_value_def, TokenKind.PAREN_R )
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
739
743
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,894
parse_input_value_def
def parse_input_value_def(self) -> InputValueDefinitionNode: """InputValueDefinition""" start = self._lexer.token description = self.parse_description() name = self.parse_name() self.expect_token(TokenKind.COLON) type_ = self.parse_type_reference() default_value =...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
745
765
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,895
parse_interface_type_definition
def parse_interface_type_definition(self) -> InterfaceTypeDefinitionNode: """InterfaceTypeDefinition""" start = self._lexer.token description = self.parse_description() self.expect_keyword("interface") name = self.parse_name() interfaces = self.parse_implements_interfaces...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
767
783
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,896
parse_union_type_definition
def parse_union_type_definition(self) -> UnionTypeDefinitionNode: """UnionTypeDefinition""" start = self._lexer.token description = self.parse_description() self.expect_keyword("union") name = self.parse_name() directives = self.parse_const_directives() types = se...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
785
799
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,897
parse_union_member_types
def parse_union_member_types(self) -> List[NamedTypeNode]: """UnionMemberTypes""" return ( self.delimited_many(TokenKind.PIPE, self.parse_named_type) if self.expect_optional_token(TokenKind.EQUALS) else [] )
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
801
807
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,898
parse_enum_type_definition
def parse_enum_type_definition(self) -> EnumTypeDefinitionNode: """UnionTypeDefinition""" start = self._lexer.token description = self.parse_description() self.expect_keyword("enum") name = self.parse_name() directives = self.parse_const_directives() values = self...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
809
823
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,899
parse_enum_values_definition
def parse_enum_values_definition(self) -> List[EnumValueDefinitionNode]: """EnumValuesDefinition: {EnumValueDefinition+}""" return self.optional_many( TokenKind.BRACE_L, self.parse_enum_value_definition, TokenKind.BRACE_R )
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
825
829
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,900
parse_enum_value_definition
def parse_enum_value_definition(self) -> EnumValueDefinitionNode: """EnumValueDefinition: Description? EnumValue Directives[Const]?""" start = self._lexer.token description = self.parse_description() name = self.parse_enum_value_name() directives = self.parse_const_directives() ...
python
python-3.10.8.amd64/Lib/site-packages/graphql/language/parser.py
831
842
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }