Skip to content

Commit 0788165

Browse files
authored
Merge pull request #3823 from umak1106/patch-5
Annotations for init file
2 parents fc04038 + f8b359d commit 0788165

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

package/MDAnalysis/__init__.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@
155155

156156
import logging
157157
import warnings
158+
from typing import Dict
159+
158160

159161
logger = logging.getLogger("MDAnalysis.__init__")
160162

@@ -167,18 +169,19 @@
167169

168170
# Registry of Readers, Parsers and Writers known to MDAnalysis
169171
# Metaclass magic fills these as classes are declared.
170-
_READERS = {}
171-
_READER_HINTS = {}
172-
_SINGLEFRAME_WRITERS = {}
173-
_MULTIFRAME_WRITERS = {}
174-
_PARSERS = {}
175-
_PARSER_HINTS = {}
176-
_SELECTION_WRITERS = {}
177-
_CONVERTERS = {}
172+
_READERS: Dict = {}
173+
_READER_HINTS: Dict = {}
174+
_SINGLEFRAME_WRITERS: Dict = {}
175+
_MULTIFRAME_WRITERS: Dict = {}
176+
_PARSERS: Dict = {}
177+
_PARSER_HINTS: Dict = {}
178+
_SELECTION_WRITERS: Dict = {}
179+
_CONVERTERS: Dict = {}
178180
# Registry of TopologyAttributes
179-
_TOPOLOGY_ATTRS = {} # {attrname: cls}
180-
_TOPOLOGY_TRANSPLANTS = {} # {name: [attrname, method, transplant class]}
181-
_TOPOLOGY_ATTRNAMES = {} # {lower case name w/o _ : name}
181+
_TOPOLOGY_ATTRS: Dict = {} # {attrname: cls}
182+
_TOPOLOGY_TRANSPLANTS: Dict = {}
183+
# {name: [attrname, method, transplant class]}
184+
_TOPOLOGY_ATTRNAMES: Dict = {} # {lower case name w/o _ : name}
182185

183186

184187
# custom exceptions and warnings

0 commit comments

Comments
 (0)