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
getattr doesn't take keyword arguments, while inspect.getattr_static does. Besides, its documentation represents the default of the default parameter as None, whereas it is an unrepresentable sentinel at runtime.
Documentation
getattrdoesn't take keyword arguments, whileinspect.getattr_staticdoes. Besides, its documentation represents the default of thedefaultparameter asNone, whereas it is an unrepresentable sentinel at runtime.Linked PRs
inspect.getattr_staticdocumentation flaws, including in faulty code example attached #150504