mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-15 20:38:05 +08:00
Add @type_check_only to stub-only private classes in various third-party stubs (#15535)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
from _typeshed import Incomplete
|
||||
from types import ModuleType
|
||||
from typing import Protocol
|
||||
from typing import Protocol, type_check_only
|
||||
|
||||
# Protocol for flask.Flask class
|
||||
@type_check_only
|
||||
class _Flask(Protocol):
|
||||
def before_request(self, f): ...
|
||||
def after_request(self, f): ...
|
||||
|
||||
Reference in New Issue
Block a user