File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Unreleased
8
8
- The Watchdog reloader ignores file closed no write events. :issue: `2945 `
9
9
- Logging works with client addresses containing an IPv6 scope :issue: `2952 `
10
10
- Ignore invalid authorization parameters. :issue: `2955 `
11
+ - Improve type annotation fore ``SharedDataMiddleware ``. :issue: `2958 `
11
12
12
13
13
14
Version 3.0.4
Original file line number Diff line number Diff line change 11
11
12
12
from __future__ import annotations
13
13
14
+ import collections .abc as cabc
14
15
import importlib .util
15
16
import mimetypes
16
17
import os
@@ -103,7 +104,7 @@ def __init__(
103
104
self ,
104
105
app : WSGIApplication ,
105
106
exports : (
106
- dict [str , str | tuple [str , str ]]
107
+ cabc . Mapping [str , str | tuple [str , str ]]
107
108
| t .Iterable [tuple [str , str | tuple [str , str ]]]
108
109
),
109
110
disallow : None = None ,
@@ -116,7 +117,7 @@ def __init__(
116
117
self .cache = cache
117
118
self .cache_timeout = cache_timeout
118
119
119
- if isinstance (exports , dict ):
120
+ if isinstance (exports , cabc . Mapping ):
120
121
exports = exports .items ()
121
122
122
123
for key , value in exports :
You can’t perform that action at this time.
0 commit comments