diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-09-09 10:43:39 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-09-09 10:43:39 +0200 |
commit | 173003d9e07bde956eceda83f02224ceb082b4c7 (patch) | |
tree | a9f5be93f535fec2daa0fae6b033b79bade0376f /scanner.py | |
parent | f2e5ad1e946a5401753a4058269f933c6d94fc62 (diff) | |
download | ruamel.yaml-173003d9e07bde956eceda83f02224ceb082b4c7.tar.gz |
mypy and minor fix
Diffstat (limited to 'scanner.py')
-rw-r--r-- | scanner.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -528,7 +528,7 @@ class Scanner(object): self.fetch_flow_collection_end(FlowMappingEndToken) def fetch_flow_collection_end(self, TokenClass): - # type: (Any, Text) -> None + # type: (Any) -> None # Reset possible simple key on the current level. self.remove_possible_simple_key() # Decrease the flow level. @@ -1133,7 +1133,7 @@ class Scanner(object): return TagToken(value, start_mark, end_mark) def scan_block_scalar(self, style, rt=False): - # type: (Any) -> Any + # type: (Any, Optional[bool]) -> Any # See the specification for details. srp = self.reader.peek if style == '>': @@ -1931,9 +1931,9 @@ class RoundTripScanner(Scanner): return ch return "" - def scan_block_scalar(self, style): - # type: (Any) -> Any - return Scanner.scan_block_scalar(self, style, rt=True) + def scan_block_scalar(self, style, rt=True): + # type: (Any, Optional[bool]) -> Any + return Scanner.scan_block_scalar(self, style, rt=rt) # try: |