Exclude @overload from coverage (#56021)

pull/56029/head
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
1 changed files with 2 additions and 1 deletions

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