diff options
| author | 2020-06-27 16:09:54 -0700 | |
|---|---|---|
| committer | 2020-06-27 16:09:54 -0700 | |
| commit | 94017fdf0e3c9805e3ead81823f3870d3834edd5 (patch) | |
| tree | c0570434b1598ca8d2d3f2621ed3e59405072909 /bot/cogs/codeblock/parsing.py | |
| parent | Merge remote-tracking branch 'origin/master' into bug/utility/829/non-py-code... (diff) | |
Code block: rename BadLanguage attributes
The `has_` prefix it clarifies that they're booleans.
Co-authored-by: Numerlor <[email protected]>
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/codeblock/parsing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/codeblock/parsing.py b/bot/cogs/codeblock/parsing.py index 89f8111fc..73b6a874e 100644 --- a/bot/cogs/codeblock/parsing.py +++ b/bot/cogs/codeblock/parsing.py @@ -60,8 +60,8 @@ class BadLanguage(NamedTuple): """Parsed information about a poorly formatted language specifier.""" language: str - leading_spaces: bool - terminal_newline: bool + has_leading_spaces: bool + has_terminal_newline: bool def find_code_blocks(message: str) -> Optional[Sequence[CodeBlock]]: |