original_docstring: Yield this NameContainer and all of its parents to create a flat list.
docstring: Yield this NameContainer and all of its parents to create a flat list.
docstring_tokens: Yield this NameContainer and all of its parents to create a flat list .
code: def parent_iter(nc: 'NameContainer') -> Iterator['NameContainer']:
          """Yield this NameContainer and all of its parents to create a flat list."""
          yield nc
          if nc.parent is not None:
              yield from NameContainer.parent_iter(nc.parent)
code_tokens: def parent_iter ( nc : 'NameContainer' ) -> Iterator [ 'NameContainer' ] : yield nc if nc . parent is not None : yield from NameContainer . parent_iter ( nc . parent )
short_docstring: Yield this NameContainer and all of its parents to create a flat list.
short_docstring_tokens: Yield this NameContainer and all of its parents to create a flat list .
comment: """Yield this NameContainer and all of its parents to create a flat list."""