import logging

logger = logging.getLogger()
logger.<warning descr="Unresolved attribute reference 'foobar' for class 'Logger'">foobar</warning>()
import logging

logger = logging.getLogger()
logger.<warning descr="Unresolved attribute reference 'foobar' for class 'Logger'">foobar</warning>()