Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add typing to
dirsnapshot
(#1012)
Before: ``` (.venv) abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/watchdog (master●) $ mypy --disallow-untyped-defs src/watchdog/utils/dirsnapshot.py src/watchdog/utils/dirsnapshot.py:82: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:88: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:93: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:141: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:144: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:162: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:167: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:172: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:177: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:187: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:194: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:204: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:211: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:241: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:258: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:290: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:296: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:302: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:307: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:310: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:313: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:316: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:331: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:340: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:343: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:354: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:364: error: Function is missing a return type annotation [no-untyped-def] Found 27 errors in 1 file (checked 1 source file) ``` After: ``` (.venv) abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/watchdog (master●●) $ mypy --disallow-untyped-defs src/watchdog/utils/dirsnapshot.py Success: no issues found in 1 source file ```
- Loading branch information