Skip to content

Commit 9303f3a

Browse files
committed
Format according to new version of Black
1 parent e134084 commit 9303f3a

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

src/minizinc/driver.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717

1818

1919
class Driver(ABC):
20-
"""The abstract representation of a MiniZinc driver within MiniZinc Python.
21-
"""
20+
"""The abstract representation of a MiniZinc driver within MiniZinc Python."""
2221

2322
Solver: Type
2423
Instance: Instance

src/minizinc/instance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
class Instance(Model, ABC):
1616
"""Abstract representation of a MiniZinc instance in Python.
1717
18-
Raises:
19-
MiniZincError: when an error occurs during the parsing or
20-
type checking of the model object.
18+
Raises:
19+
MiniZincError: when an error occurs during the parsing or
20+
type checking of the model object.
2121
"""
2222

2323
@abstractmethod

src/minizinc/pygments.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ class MiniZincLexer(RegexLexer):
104104
("(\n|\r|\r\n)", String),
105105
(".", String),
106106
],
107-
"main__1": [("(\n|\r|\r\n)", String), (".", Generic.Inserted),],
107+
"main__1": [
108+
("(\n|\r|\r\n)", String),
109+
(".", Generic.Inserted),
110+
],
108111
"main__2": [
109112
("(\\|)", bygroups(Punctuation)),
110113
("(/\\*)", bygroups(Comment), "multi_line_comment__1"),
@@ -447,7 +450,10 @@ class MiniZincLexer(RegexLexer):
447450
("(\n|\r|\r\n)", String),
448451
(".", String),
449452
],
450-
"multi_line_comment__1": [("(\n|\r|\r\n)", String), (".", Comment),],
453+
"multi_line_comment__1": [
454+
("(\n|\r|\r\n)", String),
455+
(".", Comment),
456+
],
451457
"string__1": [
452458
("(\\\\\\()", bygroups(Punctuation), "string__2"),
453459
("(\\\\[\"'\\\\nrvt])", bygroups(String.Escape)),

0 commit comments

Comments
 (0)