Closed jhaiduce closed 4 years ago
Thanks a lot! There are problems with Python 2.7 (fprettify should still be compatible with python 2):
File "/home/travis/build/pseewald/fprettify/fprettify/__init__.py", line 984
def diff(a: str, b: str, a_name: str, b_name: str) -> str:
^
SyntaxError: invalid syntax
could you check?
Thanks a lot! There are problems with Python 2.7 (fprettify should still be compatible with python 2):
File "/home/travis/build/pseewald/fprettify/fprettify/__init__.py", line 984 def diff(a: str, b: str, a_name: str, b_name: str) -> str: ^ SyntaxError: invalid syntax
could you check?
Just pushed a commit that changes the type-hinting to a python 2.7 compatible syntax.
This PR adds a command-line option to print diffs of the file(s) to standard output instead of changing the files in-place.