jellyfin / jellyfin-apiclient-python

Python API Client for Jellyfin
GNU General Public License v3.0
94 stars 32 forks source link

Use hasattr() in has_attribute #27

Closed s-t-e-v-e-n-k closed 1 year ago

s-t-e-v-e-n-k commented 1 year ago

has_attribute uses dunder methods that getattr() calls, and there is in fact a wrapper function that handles all of this for us, hasattr(). Switch to using it.

oddstr13 commented 1 year ago

This looks like an useless function, I propose deprecating it for now, and removing it completely at some point later.

s-t-e-v-e-n-k commented 1 year ago

It was added explicitly in README, maybe we can just drop it?