(
self, node: _ImportInclude, default: bool
)
| 327 | return node |
| 328 | |
| 329 | def parse_import_context( |
| 330 | self, node: _ImportInclude, default: bool |
| 331 | ) -> _ImportInclude: |
| 332 | if self.stream.current.test_any( |
| 333 | "name:with", "name:without" |
| 334 | ) and self.stream.look().test("name:context"): |
| 335 | node.with_context = next(self.stream).value == "with" |
| 336 | self.stream.skip() |
| 337 | else: |
| 338 | node.with_context = default |
| 339 | return node |
| 340 | |
| 341 | def parse_include(self) -> nodes.Include: |
| 342 | node = nodes.Include(lineno=next(self.stream).lineno) |
no test coverage detected