Add typing and deprecation warnings to ``NodeNG.statement`` (#1217)

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
6 files changed