Exclude @overload from coverage (#56021)

This commit is contained in:
Erik Montnemery 2021-09-09 21:24:23 +02:00 committed by GitHub
parent f79de2a5bc
commit 3af4b2639b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1276,5 +1276,6 @@ exclude_lines =
raise AssertionError
raise NotImplementedError
# TYPE_CHECKING block is never executed during pytest run
# TYPE_CHECKING and @overload blocks are never executed during pytest run
if TYPE_CHECKING:
@overload