summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2020-03-06 14:49:46 -0800
committerDavid Lord <davidism@gmail.com>2020-03-06 14:49:46 -0800
commit8fe37afda8a3fe34f87c9936e72bcd02c0eb77af (patch)
treebaffc9f48861c31a206ec07a766b78f1c61b70ec /src
parenta1de45c1aa4bd87c6516755de61b7ca52e135462 (diff)
downloadclick-8fe37afda8a3fe34f87c9936e72bcd02c0eb77af.tar.gz
apply formatting
Diffstat (limited to 'src')
-rw-r--r--src/click/_compat.py4
-rw-r--r--src/click/core.py8
2 files changed, 3 insertions, 9 deletions
diff --git a/src/click/_compat.py b/src/click/_compat.py
index 5caa593..f7b1a8d 100644
--- a/src/click/_compat.py
+++ b/src/click/_compat.py
@@ -428,9 +428,7 @@ else:
def get_binary_stdin():
reader = _find_binary_reader(sys.stdin)
if reader is None:
- raise RuntimeError(
- "Was not able to determine binary stream for sys.stdin."
- )
+ raise RuntimeError("Was not able to determine binary stream for sys.stdin.")
return reader
def get_binary_stdout():
diff --git a/src/click/core.py b/src/click/core.py
index 937d747..ce60781 100644
--- a/src/click/core.py
+++ b/src/click/core.py
@@ -712,9 +712,7 @@ class BaseCommand(object):
and parses the arguments, then modifies the context as necessary.
This is automatically invoked by :meth:`make_context`.
"""
- raise NotImplementedError(
- "Base commands do not know how to parse arguments."
- )
+ raise NotImplementedError("Base commands do not know how to parse arguments.")
def invoke(self, ctx):
"""Given a context, this invokes the command. The default
@@ -1774,9 +1772,7 @@ class Option(Parameter):
if not self.is_bool_flag and self.secondary_opts:
raise TypeError("Got secondary option for non boolean flag.")
if self.is_bool_flag and self.hide_input and self.prompt is not None:
- raise TypeError(
- "Hidden input does not work with boolean flag prompts."
- )
+ raise TypeError("Hidden input does not work with boolean flag prompts.")
if self.count:
if self.multiple:
raise TypeError(