From cd65a453192546a660d6f5ebad5af08bb1c72af4 Mon Sep 17 00:00:00 2001 From: James Addison Date: Thu, 13 Apr 2023 16:51:10 +0100 Subject: [PATCH] (once more) Retain use of single-quoted triple-quoted string as an exception (to avoid adjusting the standard use of double-quotes in triple-quoted docstrings) --- alembic/runtime/environment.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/alembic/runtime/environment.py b/alembic/runtime/environment.py index 04713ac5..cba0baf7 100644 --- a/alembic/runtime/environment.py +++ b/alembic/runtime/environment.py @@ -39,7 +39,7 @@ class EnvironmentContext(util.ModuleClsProxy): - '''A configurational facade made available in an ``env.py`` script. + """A configurational facade made available in an ``env.py`` script. The :class:`.EnvironmentContext` acts as a *facade* to the more nuts-and-bolts objects of :class:`.MigrationContext` as well as certain @@ -67,10 +67,10 @@ class EnvironmentContext(util.ModuleClsProxy): def my_function(rev, context): - """do something with revision "rev", which + '''do something with revision "rev", which will be the current database revision, and "context", which is the MigrationContext - that the env.py will create""" + that the env.py will create''' with EnvironmentContext( @@ -100,7 +100,7 @@ def my_function(rev, context): is *only* needed when you need to actually invoke the ``env.py`` module present in the migration environment. - ''' + """ _migration_context: Optional[MigrationContext] = None