Ignore false positive no-member error (#5189)

This commit is contained in:
Mike Degatano 2024-07-18 02:43:59 -04:00 committed by GitHub
parent aa7f4aafeb
commit eac167067e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,8 +113,11 @@ class CoreSys:
"""Return system timezone."""
if self.config.timezone:
return self.config.timezone
# pylint bug with python 3.12.4 (https://github.com/pylint-dev/pylint/issues/9811)
# pylint: disable=no-member
if self.host.info.timezone:
return self.host.info.timezone
# pylint: enable=no-member
return "UTC"
@property