MCPcopy
hub / github.com/beeware/toga / warn

Method warn

core/src/toga/__init__.py:40–45  ·  view source on GitHub ↗

Raise a warning that a feature isn't implemented on a platform.

(cls, platform: str, feature: str)

Source from the content-addressed store, hash-verified

38 # the message format and the warn invocation.
39 @classmethod
40 def warn(cls, platform: str, feature: str) -> None:
41 """Raise a warning that a feature isn't implemented on a platform."""
42 warnings.warn(
43 NotImplementedWarning(f"[{platform}] Not implemented: {feature}"),
44 stacklevel=2,
45 )
46
47
48__version__ = version("toga-core")

Callers 15

factory.pyFile · 0.80
not_implementedFunction · 0.80
__init__Method · 0.80
insertMethod · 0.80
changeMethod · 0.80
removeMethod · 0.80
clearMethod · 0.80
insertMethod · 0.80
changeMethod · 0.80
removeMethod · 0.80
clearMethod · 0.80
insertMethod · 0.80

Calls 1

Tested by

no test coverage detected