Created
October 7, 2019 22:15
-
-
Save swerwath/860345b5b365a641f8a314a94cfcdd51 to your computer and use it in GitHub Desktop.
Regex for counting Python type hints in a diff file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -o -E '^\+.*(\) ->|[^\W0-9\)]\w*:) [^\W0-9]\w*' <DIFF FILE> | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment