AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

BUG: Use syntax compatible with python 3.9/3.8 #301

Closed carterbox closed 8 months ago

carterbox commented 8 months ago

Purpose

Fix some syntax that is incompatible with older python versions.

Approach

Using typing.Optional and typing.Union instead of |

Pre-Merge Checklists

Submitter

Reviewer

pep8speaks commented 8 months ago

Hello @carterbox! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 679:81: E501 line too long (87 > 80 characters)