community[patch]: Clean up logic in import checking unit test (#22026)

Clean up unit test
This commit is contained in:
Eugene Yurtsev 2024-05-22 11:30:10 -04:00 committed by GitHub
parent d8a1f1114d
commit 8d82160a8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,10 +77,6 @@ def test_no_dynamic__all__() -> None:
"""
bad_definitions = []
for path in glob.glob(ALL_COMMUNITY_GLOB):
relative_path = Path(path).parts[-1]
if relative_path.endswith(".typed"):
continue
if not path.endswith("__init__.py"):
continue