File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
import warnings
3
3
from pathlib import Path
4
+ from typing import Any
4
5
from typing import Callable
5
6
from typing import Iterable
6
7
from typing import Iterator
7
8
from typing import List
9
+ from typing import MutableMapping
8
10
from typing import Optional
9
11
from typing import overload
10
12
from typing import Set
@@ -148,8 +150,9 @@ def __init__(
148
150
#: Filesystem path where this node was collected from (can be None).
149
151
self .fspath = fspath or getattr (parent , "fspath" , None )
150
152
153
+ # The explicit annotation is to avoid publicly exposing NodeKeywords.
151
154
#: Keywords/markers collected from all scopes.
152
- self .keywords = NodeKeywords (self )
155
+ self .keywords : MutableMapping [ str , Any ] = NodeKeywords (self )
153
156
154
157
#: The marker objects belonging to this node.
155
158
self .own_markers : List [Mark ] = []
You can’t perform that action at this time.
0 commit comments