Introduction
ItemPage has a fromPage classmethod already which lazy loads the wikibase contents when needed. DataSite.createNewItemFromPage can be dropped. The deprecation process needs a deprecation warning first that bot owners can replace the method usage. A FutureWarning will Always be shown which means the method will be removed completely with overnext release.
What to do:
- add a deprecated decorator with future_warning parameter and ImagePage.fromPage() for the first (instead) parameter
- look for a sample using deprecated decorator e.g. here