Gate stubs behind TYPE_CHECKING

This commit is contained in:
Odd Stråbø 2025-09-18 17:32:28 +02:00
commit 402be319ca

View file

@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
from __future__ import division, absolute_import, print_function, unicode_literals
from typing import TYPE_CHECKING
class LazyLogger(object):
"""
@ -26,6 +28,8 @@ class LazyLogger(object):
# Please ensure any actually functional code is above this comment. #
#####################################################################
if TYPE_CHECKING:
def setLevel(self, level):
"""
Set the logging level of this logger. level must be an int or a str.