python-plexapi icon indicating copy to clipboard operation
python-plexapi copied to clipboard

Refactor attribute filtering in PlexObject class

Open Dr-Blank opened this issue 2 years ago • 0 comments

Description

ref: https://github.com/pkkid/python-plexapi/pull/1302#discussion_r1452938774

The changes optimize the code by using the filter function instead of a list comprehension.

Type of change

Please delete options that are not relevant.

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] I have added or updated the docstring for new or existing methods
  • [x] I have added tests when applicable

Dr-Blank avatar Jan 16 '24 06:01 Dr-Blank