Refactor and add typing to ``NodeNG.frame()`` (#1225)

* Refactor and add typing to ``NodeNG.frame()``
3 files changed