mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cleanup: resolve mypy warnings
Also include bug_fixes_per_major_release.py in the "make check_mypy" target.
This commit is contained in:
parent
9fe0b05acd
commit
accc3de59e
2 changed files with 3 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ CRAWL_DELAY = 2
|
|||
last_checked_time = None
|
||||
|
||||
|
||||
def set_crawl_delay():
|
||||
def set_crawl_delay() -> None:
|
||||
global CRAWL_DELAY
|
||||
# Conform to Blenders crawl delay request:
|
||||
# https://projects.blender.org/robots.txt
|
||||
|
|
@ -246,6 +246,7 @@ def set_crawl_delay():
|
|||
projects.read()
|
||||
projects_crawl_delay = projects.crawl_delay("*")
|
||||
if projects_crawl_delay is not None:
|
||||
assert isinstance(projects_crawl_delay, int)
|
||||
CRAWL_DELAY = projects_crawl_delay
|
||||
except:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ PATHS: tuple[tuple[str, tuple[Any, ...], dict[str, str]], ...] = (
|
|||
("build_files/utils/", (), {'MYPYPATH': "modules"}),
|
||||
("doc/manpage/blender.1.py", (), {}),
|
||||
("release/datafiles/", (), {}),
|
||||
("release/release_notes/", (), {}),
|
||||
("scripts/modules/_bpy_internal/extensions/junction_module.py", (), {}),
|
||||
("scripts/modules/_bpy_internal/extensions/wheel_manager.py", (), {}),
|
||||
("scripts/modules/_bpy_internal/freedesktop.py", (), {}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue