From 6ac535f18d443827440780b5cb11e53b84133b36 Mon Sep 17 00:00:00 2001 From: Aaron Bannin Date: Sun, 24 May 2020 21:12:41 -0700 Subject: [PATCH] fix lints --- vcr/__init__.py | 2 +- vcr/record_mode.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/vcr/__init__.py b/vcr/__init__.py index 93d04f0..c456960 100644 --- a/vcr/__init__.py +++ b/vcr/__init__.py @@ -1,7 +1,7 @@ import logging from .config import VCR from logging import NullHandler -from .record_mode import RecordMode as mode +from .record_mode import RecordMode as mode # noqa import is not used in this file __version__ = "4.0.2" diff --git a/vcr/record_mode.py b/vcr/record_mode.py index 1b6a098..c25cf14 100644 --- a/vcr/record_mode.py +++ b/vcr/record_mode.py @@ -5,15 +5,17 @@ class RecordMode(str, Enum): """ Configues when VCR will record to the cassette. - Can be declared by either using the enumerated value (`vcr.mode.ONCE`) or by simply using the defined string (`once`). + Can be declared by either using the enumerated value (`vcr.mode.ONCE`) + or by simply using the defined string (`once`). `ALL`: Every request is recorded. `ANY`: ? `NEW_EPISODES`: Any request not found in the cassette is recorded. `NONE`: No requests are recorded. - `ONCE`: First set of requests is recorded, all others are replayed. Attempting to add a new episode fails. + `ONCE`: First set of requests is recorded, all others are replayed. + Attempting to add a new episode fails. """ - + ALL = "all" ANY = "any" NEW_EPISODES = "new_episodes"