Exemplo n.º 1
0
 def _warn_already_configured_key(cls, key: str, value: Any,
                                  old_value: Any) -> None:
     warnings.warn(
         AlreadyConfiguredWarning(
             W_ALREADY_CONFIGURED_KEY.format(
                 key=key,
                 value=value,
                 old_value=old_value,
             )),
         stacklevel=3,
     )
Exemplo n.º 2
0
 def _warn_already_configured(cls) -> None:
     warnings.warn(AlreadyConfiguredWarning(W_ALREADY_CONFIGURED),
                   stacklevel=3)