Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 4, 2022
1 parent 0424e20 commit 1795036
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chemistry_tools/formulae/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ def _get_formula_parser():
# forward declare 'formula' so it can be used in definition of 'term'
formula = Forward()

term = Group((element | Group(LPAR + formula + RPAR)("subgroup")) + pyparsing.Optional(integer, default=1)("mult"))
term = Group((element | Group(LPAR + formula + RPAR)("subgroup"))
+ pyparsing.Optional(integer, default=1)("mult"))

# add parse actions for parse-time processing

Expand Down

0 comments on commit 1795036

Please sign in to comment.