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
Use :const: for constants that had the :attr: role
Note that this intentionally does *not* include some all-caps class
attributes that are not really constants:
- Git.GIT_PYTHON_GIT_EXECUTABLE is set by refresh functions,
including on subsequent calls, which is an important and
documented part of what those functions do. (Also, it is set
automatically from an enviroment variable, which is not constant
across runs; that it could not even in principle be replaced by a
specific literal value is a further reason it is not a constant.)
- The Git.USE_SHELL attribute is a more ambiguous case. It is given
a literal value (False) which it preferably remains. But setting
it has been documented as something users can do (in the
changelog, and later in regard to setting it being a deprecated
operation).
The first of these is decisively not a constant even under a loose
definition, while the second is less clear. I've kept both with the
:attr: role.
0 commit comments