Adding type hints and imports
Record file change types while traversing through
the diff
diff-for now accepts the generator