Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
version 1.5.7: support for python3.7
  • Loading branch information
Augus1999 authored Jul 23, 2022
1 parent 1915b15 commit f971e0a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mol2chemfigPy3/bond.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def set_cross(self, last: bool = False) -> None:

def _adjoining_angles(
self, atom: Atom, inversion_angle: Union[int, float] = 0
) -> tuple[Optional[int], Optional[int]]:
) -> Tuple[Optional[int], Optional[int]]:
"""
determine the narrowest upstream or downstream angles
on the left and the right.
Expand Down
8 changes: 4 additions & 4 deletions mol2chemfigPy3/chemfig_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def format_atom_comment(options: Dict, idx: int) -> str:
return str(idx)


def format_closure_comment(options: dict, idx: int) -> str:
def format_closure_comment(options: Dict, idx: int) -> str:
"""
render an optional end of line comment after a ring-closing bond
Expand All @@ -444,7 +444,7 @@ def format_closure_comment(options: dict, idx: int) -> str:


def format_aromatic_ring(
options: dict,
options: Dict,
angle: Union[int, float],
parent_angle: Union[int, float, None],
length: Union[int, float],
Expand Down Expand Up @@ -474,7 +474,7 @@ def format_aromatic_ring(
return ring_bond_code, ring_code, comment


def strip_output(output_list: list) -> list:
def strip_output(output_list: List) -> List:
"""
remove white space and comments
Expand Down Expand Up @@ -505,7 +505,7 @@ def strip_output(output_list: list) -> list:
return chunked


def format_output(options: dict, output_list: list) -> str:
def format_output(options: Dict, output_list: List) -> str:
"""
optionally wrap the translated output into a command,
to ease inclusion in LaTeX documents with \\input
Expand Down
2 changes: 1 addition & 1 deletion mol2chemfigPy3/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from .options import getParser

program_version = "1.5.6"
program_version = "1.5.7"

# pubchem url for retrieving sdf for numerical IDs
pubchem_url = (
Expand Down

0 comments on commit f971e0a

Please sign in to comment.