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,601
from_yaml
def from_yaml(cls, constructor, node): # type: (Any, Any) -> Any """ Convert a representation node to a Python object. """ return constructor.construct_yaml_object(node, cls)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/main.py
1,546
1,551
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,602
to_yaml
def to_yaml(cls, representer, data): # type: (Any, Any) -> Any """ Convert a Python object to a representation node. """ return representer.represent_yaml_object( cls.yaml_tag, data, cls, flow_style=cls.yaml_flow_style )
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/main.py
1,554
1,561
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,603
__init__
def __init__( self, scalar, empty, multiline, allow_flow_plain, allow_block_plain, allow_single_quoted, allow_double_quoted, allow_block, ): # type: (Any, Any, Any, bool, bool, bool, bool, bool) -> None self.scalar = scalar ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
34
53
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,604
__init__
def __init__(self): # type: () -> None self.values = [] # type: List[Tuple[int, bool]]
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
58
60
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,605
append
def append(self, val, seq): # type: (Any, Any) -> None self.values.append((val, seq))
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.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,606
pop
def pop(self): # type: () -> Any return self.values.pop()[0]
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
66
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,607
last_seq
def last_seq(self): # type: () -> bool # return the seq(uence) value for the element added before the last one # in increase_indent() try: return self.values[-2][1] except IndexError: return False
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
70
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,608
seq_flow_align
def seq_flow_align(self, seq_indent, column): # type: (int, int) -> int # extra spaces because of dash if len(self.values) < 2 or not self.values[-1][1]: return 0 # -1 for the dash base = self.values[-1][0] if self.values[-1][0] is not None else 0 return base ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
79
86
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,609
__len__
def __len__(self): # type: () -> int return len(self.values)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
88
90
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,610
__init__
def __init__( self, stream, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, block_seq_indent=None, top_level_colon_align=None, prefix_colon=None, brace_single_entry_mapping_in_flow_sequence=None, ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
103
209
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,611
stream
def stream(self): # type: () -> Any try: return self._stream except AttributeError: raise YAMLStreamError("output stream needs to specified")
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
212
217
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,612
stream
def stream(self, val): # type: (Any) -> None if val is None: return if not hasattr(val, "write"): raise YAMLStreamError("stream argument needs to have a write() method") self._stream = val
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
220
226
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,613
serializer
def serializer(self): # type: () -> Any try: if hasattr(self.dumper, "typ"): return self.dumper.serializer return self.dumper._serializer except AttributeError: return self # cyaml
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
229
236
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,614
flow_level
def flow_level(self): # type: () -> int return len(self.flow_context)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
239
241
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,615
dispose
def dispose(self): # type: () -> None # Reset the state attributes (to clear self-references) self.states = [] self.state = None
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
243
247
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,616
emit
def emit(self, event): # type: (Any) -> None if dbg(DBG_EVENT): nprint(event) self.events.append(event) while not self.need_more_events(): self.event = self.events.pop(0) self.state() self.event = None
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
249
257
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,617
need_more_events
def need_more_events(self): # type: () -> bool if not self.events: return True event = self.events[0] if isinstance(event, DocumentStartEvent): return self.need_events(1) elif isinstance(event, SequenceStartEvent): return self.need_events(2) ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
261
273
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,618
need_events
def need_events(self, count): # type: (int) -> bool level = 0 for event in self.events[1:]: if isinstance(event, (DocumentStartEvent, CollectionStartEvent)): level += 1 elif isinstance(event, (DocumentEndEvent, CollectionEndEvent)): level -...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
275
287
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,619
increase_indent
def increase_indent(self, flow=False, sequence=None, indentless=False): # type: (bool, Optional[bool], bool) -> None self.indents.append(self.indent, sequence) if self.indent is None: # top level if flow: # self.indent = self.best_sequence_indent if self.indents.last...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
289
312
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,620
expect_stream_start
def expect_stream_start(self): # type: () -> None if isinstance(self.event, StreamStartEvent): if PY2: if self.event.encoding and not getattr(self.stream, "encoding", None): self.encoding = self.event.encoding else: if self.even...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
318
330
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,621
expect_nothing
def expect_nothing(self): # type: () -> None raise EmitterError("expected nothing, but got %s" % (self.event,))
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
332
334
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,622
expect_first_document_start
def expect_first_document_start(self): # type: () -> Any return self.expect_document_start(first=True)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
338
340
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,623
expect_document_start
def expect_document_start(self, first=False): # type: (bool) -> None if isinstance(self.event, DocumentStartEvent): if (self.event.version or self.event.tags) and self.open_ended: self.write_indicator(u"...", True) self.write_indent() if self.event...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
342
383
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,624
expect_document_end
def expect_document_end(self): # type: () -> None if isinstance(self.event, DocumentEndEvent): self.write_indent() if self.event.explicit: self.write_indicator(u"...", True) self.write_indent() self.flush_stream() self.state...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
385
395
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,625
expect_document_root
def expect_document_root(self): # type: () -> None self.states.append(self.expect_document_end) self.expect_node(root=True)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
397
400
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,626
expect_node
def expect_node(self, root=False, sequence=False, mapping=False, simple_key=False): # type: (bool, bool, bool, bool) -> None self.root_context = root self.sequence_context = sequence # not used in PyYAML self.mapping_context = mapping self.simple_key_context = simple_key ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
404
464
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,627
expect_alias
def expect_alias(self): # type: () -> None if self.event.anchor is None: raise EmitterError("anchor is not specified for alias") self.process_anchor(u"*") self.state = self.states.pop()
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
466
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,628
expect_scalar
def expect_scalar(self): # type: () -> None self.increase_indent(flow=True) self.process_scalar() self.indent = self.indents.pop() self.state = self.states.pop()
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
473
478
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,629
expect_flow_sequence
def expect_flow_sequence(self): # type: () -> None ind = self.indents.seq_flow_align(self.best_sequence_indent, self.column) self.write_indicator(u" " * ind + u"[", True, whitespace=True) self.increase_indent(flow=True, sequence=True) self.flow_context.append("[") self.st...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
482
488
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,630
expect_first_flow_sequence_item
def expect_first_flow_sequence_item(self): # type: () -> None if isinstance(self.event, SequenceEndEvent): self.indent = self.indents.pop() popped = self.flow_context.pop() assert popped == "[" self.write_indicator(u"]", False) if self.event.co...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
490
507
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,631
expect_flow_sequence_item
def expect_flow_sequence_item(self): # type: () -> None if isinstance(self.event, SequenceEndEvent): self.indent = self.indents.pop() popped = self.flow_context.pop() assert popped == "[" if self.canonical: self.write_indicator(u",", False)...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
509
530
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,632
expect_flow_mapping
def expect_flow_mapping(self, single=False): # type: (Optional[bool]) -> None ind = self.indents.seq_flow_align(self.best_sequence_indent, self.column) map_init = u"{" if ( single and self.flow_level and self.flow_context[-1] == "[" and not...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
534
550
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,633
expect_first_flow_mapping_key
def expect_first_flow_mapping_key(self): # type: () -> None if isinstance(self.event, MappingEndEvent): self.indent = self.indents.pop() popped = self.flow_context.pop() assert popped == "{" # empty flow mapping self.write_indicator(u"}", False) ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
552
574
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,634
expect_flow_mapping_key
def expect_flow_mapping_key(self): # type: () -> None if isinstance(self.event, MappingEndEvent): # if self.event.comment and self.event.comment[1]: # self.write_pre_comment(self.event) self.indent = self.indents.pop() popped = self.flow_context.pop() ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
576
605
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,635
expect_flow_mapping_simple_value
def expect_flow_mapping_simple_value(self): # type: () -> None self.write_indicator(self.prefixed_colon, False) self.states.append(self.expect_flow_mapping_key) self.expect_node(mapping=True)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
607
611
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,636
expect_flow_mapping_value
def expect_flow_mapping_value(self): # type: () -> None if self.canonical or self.column > self.best_width: self.write_indent() self.write_indicator(self.prefixed_colon, True) self.states.append(self.expect_flow_mapping_key) self.expect_node(mapping=True)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
613
619
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,637
expect_block_sequence
def expect_block_sequence(self): # type: () -> None if self.mapping_context: indentless = not self.indention else: indentless = False if not self.compact_seq_seq and self.column != 0: self.write_line_break() self.increase_indent(flow=Fa...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
623
632
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,638
expect_first_block_sequence_item
def expect_first_block_sequence_item(self): # type: () -> Any return self.expect_block_sequence_item(first=True)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
634
636
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,639
expect_block_sequence_item
def expect_block_sequence_item(self, first=False): # type: (bool) -> None if not first and isinstance(self.event, SequenceEndEvent): if self.event.comment and self.event.comment[1]: # final comments on a block list e.g. empty line self.write_pre_comment(self.e...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
638
657
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,640
expect_block_mapping
def expect_block_mapping(self): # type: () -> None if not self.mapping_context and not (self.compact_seq_map or self.column == 0): self.write_line_break() self.increase_indent(flow=False, sequence=False) self.state = self.expect_first_block_mapping_key
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
661
666
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,641
expect_first_block_mapping_key
def expect_first_block_mapping_key(self): # type: () -> None return self.expect_block_mapping_key(first=True)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
668
670
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,642
expect_block_mapping_key
def expect_block_mapping_key(self, first=False): # type: (Any) -> None if not first and isinstance(self.event, MappingEndEvent): if self.event.comment and self.event.comment[1]: # final comments from a doc self.write_pre_comment(self.event) self.in...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
672
701
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,643
expect_block_mapping_simple_value
def expect_block_mapping_simple_value(self): # type: () -> None if getattr(self.event, "style", None) != "?": # prefix = u'' if self.indent == 0 and self.top_level_colon_align is not None: # write non-prefixed colon c = u" " * (self.top_level_colon...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
703
714
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,644
expect_block_mapping_value
def expect_block_mapping_value(self): # type: () -> None self.write_indent() self.write_indicator(self.prefixed_colon, True, indention=True) self.states.append(self.expect_block_mapping_key) self.expect_node(mapping=True)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
716
721
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,645
check_empty_sequence
def check_empty_sequence(self): # type: () -> bool return ( isinstance(self.event, SequenceStartEvent) and bool(self.events) and isinstance(self.events[0], SequenceEndEvent) )
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
725
731
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,646
check_empty_mapping
def check_empty_mapping(self): # type: () -> bool return ( isinstance(self.event, MappingStartEvent) and bool(self.events) and isinstance(self.events[0], MappingEndEvent) )
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
733
739
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,647
check_empty_document
def check_empty_document(self): # type: () -> bool if not isinstance(self.event, DocumentStartEvent) or not self.events: return False event = self.events[0] return ( isinstance(event, ScalarEvent) and event.anchor is None and event.tag is N...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
741
752
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,648
check_simple_key
def check_simple_key(self): # type: () -> bool length = 0 if isinstance(self.event, NodeEvent) and self.event.anchor is not None: if self.prepared_anchor is None: self.prepared_anchor = self.prepare_anchor(self.event.anchor) length += len(self.prepared_anc...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
754
790
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,649
process_anchor
def process_anchor(self, indicator): # type: (Any) -> bool if self.event.anchor is None: self.prepared_anchor = None return False if self.prepared_anchor is None: self.prepared_anchor = self.prepare_anchor(self.event.anchor) if self.prepared_anchor: ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
794
806
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,650
process_tag
def process_tag(self): # type: () -> None tag = self.event.tag if isinstance(self.event, ScalarEvent): if self.style is None: self.style = self.choose_scalar_style() if (not self.canonical or tag is None) and ( (self.style == "" and self.ev...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
808
839
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,651
choose_scalar_style
def choose_scalar_style(self): # type: () -> Any if self.analysis is None: self.analysis = self.analyze_scalar(self.event.value) if self.event.style == '"' or self.canonical: return '"' if (not self.event.style or self.event.style == "?") and ( self.ev...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
841
875
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,652
process_scalar
def process_scalar(self): # type: () -> None if self.analysis is None: self.analysis = self.analyze_scalar(self.event.value) if self.style is None: self.style = self.choose_scalar_style() split = not self.simple_key_context # if self.analysis.multiline and...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
877
903
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,653
prepare_version
def prepare_version(self, version): # type: (Any) -> Any major, minor = version if major != 1: raise EmitterError("unsupported YAML version: %d.%d" % (major, minor)) return u"%d.%d" % (major, minor)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
907
912
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,654
prepare_tag_handle
def prepare_tag_handle(self, handle): # type: (Any) -> Any if not handle: raise EmitterError("tag handle must not be empty") if handle[0] != u"!" or handle[-1] != u"!": raise EmitterError( "tag handle must start and end with '!': %r" % (utf8(handle)) ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
914
933
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,655
prepare_tag_prefix
def prepare_tag_prefix(self, prefix): # type: (Any) -> Any if not prefix: raise EmitterError("tag prefix must not be empty") chunks = [] # type: List[Any] start = end = 0 if prefix[0] == u"!": end = 1 ch_set = u"-;/?:@&=+$,_.~*'()[]" if se...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
935
966
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,656
prepare_tag
def prepare_tag(self, tag): # type: (Any) -> Any if not tag: raise EmitterError("tag must not be empty") if tag == u"!": return tag handle = None suffix = tag prefixes = sorted(self.tag_prefixes.keys()) for prefix in prefixes: i...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
968
1,011
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,657
prepare_anchor
def prepare_anchor(self, anchor): # type: (Any) -> Any if not anchor: raise EmitterError("anchor must not be empty") for ch in anchor: if not check_anchorname_char(ch): raise EmitterError( "invalid character %r in the anchor: %r" % (utf...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,013
1,022
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,658
analyze_scalar
def analyze_scalar(self, scalar): # type: (Any) -> Any # Empty scalar is a special case. if not scalar: return ScalarAnalysis( scalar=scalar, empty=True, multiline=False, allow_flow_plain=False, allow_blo...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,024
1,209
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,659
flush_stream
def flush_stream(self): # type: () -> None if hasattr(self.stream, "flush"): self.stream.flush()
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,213
1,216
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,660
write_stream_start
def write_stream_start(self): # type: () -> None # Write BOM if needed. if self.encoding and self.encoding.startswith("utf-16"): self.stream.write(u"\uFEFF".encode(self.encoding))
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,218
1,222
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,661
write_stream_end
def write_stream_end(self): # type: () -> None self.flush_stream()
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,224
1,226
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,662
write_indicator
def write_indicator( self, indicator, need_whitespace, whitespace=False, indention=False ): # type: (Any, Any, bool, bool) -> None if self.whitespace or not need_whitespace: data = indicator else: data = u" " + indicator self.whitespace = whitespace ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,228
1,242
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,663
write_indent
def write_indent(self): # type: () -> None indent = self.indent or 0 if ( not self.indention or self.column > indent or (self.column == indent and not self.whitespace) ): if bool(self.no_newline): self.no_newline = False ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,244
1,262
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,664
write_line_break
def write_line_break(self, data=None): # type: (Any) -> None if data is None: data = self.best_line_break self.whitespace = True self.indention = True self.line += 1 self.column = 0 if bool(self.encoding): data = data.encode(self.encoding) ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,264
1,274
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,665
write_version_directive
def write_version_directive(self, version_text): # type: (Any) -> None data = u"%%YAML %s" % version_text if self.encoding: data = data.encode(self.encoding) self.stream.write(data) self.write_line_break()
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,276
1,282
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,666
write_tag_directive
def write_tag_directive(self, handle_text, prefix_text): # type: (Any, Any) -> None data = u"%%TAG %s %s" % (handle_text, prefix_text) if self.encoding: data = data.encode(self.encoding) self.stream.write(data) self.write_line_break()
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,284
1,290
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,667
write_single_quoted
def write_single_quoted(self, text, split=True): # type: (Any, Any) -> None if self.root_context: if self.requested_indent is not None: self.write_line_break() if self.requested_indent != 0: self.write_indent() self.write_indicator(...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,294
1,357
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,668
write_double_quoted
def write_double_quoted(self, text, split=True): # type: (Any, Any) -> None if self.root_context: if self.requested_indent is not None: self.write_line_break() if self.requested_indent != 0: self.write_indent() self.write_indicator(...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,377
1,445
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,669
determine_block_hints
def determine_block_hints(self, text): # type: (Any) -> Any indent = 0 indicator = u"" hints = u"" if text: if text[0] in u" \n\x85\u2028\u2029": indent = self.best_sequence_indent hints += text_type(indent) elif self.root_c...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,447
1,478
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,670
write_folded
def write_folded(self, text): # type: (Any) -> None hints, _indent, _indicator = self.determine_block_hints(text) self.write_indicator(u">" + hints, True) if _indicator == u"+": self.open_ended = True self.write_line_break() leading_space = True spaces...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,480
1,546
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,671
write_literal
def write_literal(self, text, comment=None): # type: (Any, Any) -> None hints, _indent, _indicator = self.determine_block_hints(text) self.write_indicator(u"|" + hints, True) try: comment = comment[1][0] if comment: self.stream.write(comment) ...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,548
1,592
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,672
write_plain
def write_plain(self, text, split=True): # type: (Any, Any) -> None if self.root_context: if self.requested_indent is not None: self.write_line_break() if self.requested_indent != 0: self.write_indent() else: sel...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,594
1,661
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,673
write_comment
def write_comment(self, comment, pre=False): # type: (Any, bool) -> None value = comment.value # nprintf('{:02d} {:02d} {!r}'.format(self.column, comment.start_mark.column, value)) if not pre and value[-1] == "\n": value = value[:-1] try: # get original co...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,663
1,697
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,674
write_pre_comment
def write_pre_comment(self, event): # type: (Any) -> bool comments = event.comment[1] if comments is None: return False try: start_events = (MappingStartEvent, SequenceStartEvent) for comment in comments: if isinstance(event, start_even...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,699
1,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,675
write_post_comment
def write_post_comment(self, event): # type: (Any) -> bool if self.event.comment[0] is None: return False comment = event.comment[0] self.write_comment(comment) return True
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/emitter.py
1,721
1,727
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,676
__init__
def __init__(self): # type: () -> None self.comment = None # [post, [pre]] # map key (mapping/omap/dict) or index (sequence/list) to a list of # dict: post_key, pre_key, post_value, pre_value # list: pre item, post item self._items = {} # type: Dict[Any, Any] #...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
47
55
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,677
__str__
def __str__(self): # type: () -> str if bool(self._end): end = ",\n end=" + str(self._end) else: end = "" return "Comment(comment={0},\n items={1}{2})".format( self.comment, self._items, end )
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
57
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,678
items
def items(self): # type: () -> Any return self._items
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
68
70
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,679
end
def end(self): # type: () -> Any return self._end
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
73
75
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,680
end
def end(self, value): # type: (Any) -> None self._end = value
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
78
80
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,681
start
def start(self): # type: () -> Any return self._start
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
83
85
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,682
start
def start(self, value): # type: (Any) -> None self._start = value
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
88
90
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,683
NoComment
def NoComment(): # type: () -> None pass
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
94
96
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,684
__init__
def __init__(self): # type: () -> None self._flow_style = None # type: Any
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
103
105
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,685
set_flow_style
def set_flow_style(self): # type: () -> None self._flow_style = True
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
107
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,686
set_block_style
def set_block_style(self): # type: () -> None self._flow_style = False
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
111
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,687
flow_style
def flow_style(self, default=None): # type: (Optional[Any]) -> Any """if default (the flow_style) is None, the flow style tacked on to the object explicitly will be taken. If that is None as well the default flow style rules the format down the line, or the type of the constituen...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
115
123
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,688
__init__
def __init__(self): # type: () -> None self.line = None self.col = None self.data = None # type: Optional[Dict[Any, Any]]
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
129
133
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,689
add_kv_line_col
def add_kv_line_col(self, key, data): # type: (Any, Any) -> None if self.data is None: self.data = {} self.data[key] = data
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
135
139
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,690
key
def key(self, k): # type: (Any) -> Any return self._kv(k, 0, 1)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
141
143
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,691
value
def value(self, k): # type: (Any) -> Any return self._kv(k, 2, 3)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
145
147
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,692
_kv
def _kv(self, k, x0, x1): # type: (Any, Any, Any) -> Any if self.data is None: return None data = self.data[k] return data[x0], data[x1]
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
149
154
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,693
item
def item(self, idx): # type: (Any) -> Any if self.data is None: return None return self.data[idx][0], self.data[idx][1]
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
156
160
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,694
add_idx_line_col
def add_idx_line_col(self, key, data): # type: (Any, Any) -> None if self.data is None: self.data = {} self.data[key] = data
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
162
166
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,695
__init__
def __init__(self): # type: () -> None self.value = None
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
175
177
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,696
__repr__
def __repr__(self): # type: () -> Any return "{0.__class__.__name__}({0.value!r})".format(self)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
179
181
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,697
ca
def ca(self): # type: () -> Any if not hasattr(self, Comment.attrib): setattr(self, Comment.attrib, Comment()) return getattr(self, Comment.attrib)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
186
190
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,698
yaml_end_comment_extend
def yaml_end_comment_extend(self, comment, clear=False): # type: (Any, bool) -> None if comment is None: return if clear or self.ca.end is None: self.ca.end = [] self.ca.end.extend(comment)
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
192
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,699
yaml_key_comment_extend
def yaml_key_comment_extend(self, key, comment, clear=False): # type: (Any, Any, bool) -> None r = self.ca._items.setdefault(key, [None, None, None, None]) if clear or r[1] is None: if comment[1] is not None: assert isinstance(comment[1], list) r[1] = comm...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
200
209
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }
6,069,700
yaml_value_comment_extend
def yaml_value_comment_extend(self, key, comment, clear=False): # type: (Any, Any, bool) -> None r = self.ca._items.setdefault(key, [None, None, None, None]) if clear or r[3] is None: if comment[1] is not None: assert isinstance(comment[1], list) r[3] = co...
python
python-3.10.8.amd64/Lib/site-packages/srsly/ruamel_yaml/comments.py
211
220
{ "name": "PortablePy/3.10.8.0", "url": "https://github.com/PortablePy/3.10.8.0.git", "license": "NOASSERTION", "stars": 0, "forks": 0 }