Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ repos:
- id: docstrfmt
require_serial: true
repo: https://github.com/LilSpazJoekp/docstrfmt
rev: 8688ba6420d7b5ca95a8ba0edf8a9953babdc3da # frozen: v2.1.1
rev: a05381030e526dc863e2006d34824271d7681d08 # frozen: v2.2.0

- hooks:
- id: codesorter
require_serial: true
repo: https://github.com/praw-dev/CodeSorter
rev: 8aa6144b41e0f789124b2ca377d246ffd1fbb317 # frozen: v0.2.7
rev: 03a8cecfa6ae82183f9e152d1bbb16ea6a6c1d11 # frozen: v0.2.8

- hooks:
- id: auto-walrus
Expand All @@ -21,7 +21,7 @@ repos:
id: ruff
- id: ruff-format
repo: https://github.com/astral-sh/ruff-pre-commit
rev: 3b3f7c3f57fe9925356faf5fe6230835138be230 # frozen: v0.15.17
rev: 77039ccbba72c8aede339c5f8ae29b42aced0a2e # frozen: v0.15.18

- hooks:
- files: ^(.*\.toml)$
Expand Down
4 changes: 2 additions & 2 deletions prawcore/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def _auth(self) -> tuple[str, str]:

@property
def requestor(self) -> Requestor:
"""Return the :class:`.Requestor` used to issue HTTP requests."""
"""The :class:`.Requestor` used to issue HTTP requests."""
return self._requestor

def __init__(
Expand Down Expand Up @@ -135,7 +135,7 @@ class BaseAuthorizer:

@property
def authenticator(self) -> BaseAuthenticator:
"""Return the :class:`.BaseAuthenticator` used to authenticate requests."""
"""The :class:`.BaseAuthenticator` used to authenticate requests."""
return self._authenticator

def __init__(self, *, authenticator: BaseAuthenticator) -> None:
Expand Down
6 changes: 3 additions & 3 deletions prawcore/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,17 @@ def _log_request(

@property
def authorizer(self) -> BaseAuthorizer:
"""Return the :class:`.BaseAuthorizer` used to authorize requests."""
"""The :class:`.BaseAuthorizer` used to authorize requests."""
return self._authorizer

@property
def rate_limiter(self) -> RateLimiter:
"""Return the :class:`.RateLimiter` that throttles requests."""
"""The :class:`.RateLimiter` that throttles requests."""
return self._rate_limiter

@property
def requestor(self) -> Requestor:
"""Return the :class:`.Requestor` used to issue HTTP requests."""
"""The :class:`.Requestor` used to issue HTTP requests."""
return self._authorizer.authenticator.requestor

def __enter__(self) -> Self:
Expand Down
Loading