Skip to content

Deprecate legacy property creation #533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 12, 2023

Conversation

penguinolog
Copy link
Collaborator

  • Drop long time ago removed methods (never returning methods)
  • Move large part of property implementations under @property
  • Emit PendingDeprecationWarning for old compatibility code for public methods used as core for property and methods for compatibility
  • Emit DeprecationWarning for private methods used in property construction using property() call

Due to amount of copy-paste like changes, for containers shared part is moved to the existing base classes Add __len__ to the list based containers. Related #445 Fix typo in type annotation for Frame.mouse_event

Checklist
  • I've ensured that similar functionality has not already been implemented
  • I've ensured that similar functionality has not earlier been proposed and declined
  • I've branched off the master or python-dual-support branch
  • I've merged fresh upstream into my branch recently
  • I've ran tox successfully in local environment
  • I've included docstrings and/or documentation and/or examples for my code (if this is a new feature)

* Drop long time ago removed methods (never returning methods)
* Move large part of property implementations under `@property`
* Emit `PendingDeprecationWarning`
  for old compatibility code
  for public methods used as core for property and methods for compatibility
* Emit `DeprecationWarning`
  for private methods used in property construction
  using `property()` call

Due to amount of copy-paste like changes, for containers shared part is moved to the existing base classes
Add `__len__` to the list based containers. Related urwid#445
Fix typo in type annotation for `Frame.mouse_event`
penguinolog and others added 2 commits April 11, 2023 19:49
Co-authored-by: Ian Ward <ian@excess.org>
Co-authored-by: Ian Ward <ian@excess.org>
penguinolog and others added 3 commits April 11, 2023 21:35
Co-authored-by: Ian Ward <ian@excess.org>
…m pre-property era

Make consistent with other containers
@penguinolog penguinolog merged commit 8a0a6d1 into urwid:master Apr 12, 2023
@penguinolog penguinolog deleted the Deprecations branch April 12, 2023 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants