You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when subclassing Method, if the caniuse() check fails, the subclass could either.
Return False (means unsuitable) or a string (means unsuitable and tell a reason for it)
Raise an Exception
Should there be only one way to indicate that the caniuse check fails? Perhaps, change the wording from
Returns
-------
result: bool | None | str
``True`` means suitable, ``None`` means uncertain, ``False`` means
unsuitable and a string means unsuitable and tells the reason for
it.
Raises
------
Exception
If the Method may not be used, may raise an Exception.
to
Returns
-------
result: bool | None | str
``True`` means suitable, ``None`` means uncertain, ``False`` means
unsuitable and a string means unsuitable and tells the reason for
it.
any exception raised is interpreted as a failed caniuse check, but when subclassing, it is preferable to use a return value rather than raise an exception.
The text was updated successfully, but these errors were encountered:
Currently, when subclassing Method, if the
caniuse()
check fails, the subclass could either.False
(means unsuitable) or a string (means unsuitable and tell a reason for it)Should there be only one way to indicate that the caniuse check fails? Perhaps, change the wording from
to
The text was updated successfully, but these errors were encountered: