v3.2.0
Added
- Add an
__all__to theprawcorepackage to explicitly define its public API. - Add a
py.typedmarker (:PEP:561) so that downstream projects can type check
against prawcore's inline annotations. - Add read-only :attr:
.Session.authorizer, :attr:.Session.rate_limiter, and
:attr:.Session.requestorproperties, a :attr:.BaseAuthorizer.authenticator
property, and a :attr:.BaseAuthenticator.requestorproperty, so that downstream code
can reach these objects without accessing protected attributes.
Changed
- Widen the
authorizerparameter of :func:.sessiontoBaseAuthorizerto match
:class:.Session, so that passing an :class:.ImplicitAuthorizeror
:class:.DeviceIDAuthorizertype checks. - Widen the
data,files,json, andparamsparameter annotations of
:meth:.Session.requestto reflect the values it already accepts at runtime (for
example a non-dictdatabody, alistjsonpayload, and anyIOfile
object), so that callers no longer need to cast these arguments.