Skip to content

Commit 44083b6

Browse files
committed
STYLE: Initial typehints added.
1 parent 72e117d commit 44083b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Wrapping/Generators/Python/itkTypes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818

1919
import os
2020
import numpy as np
21-
from typing import Dict
21+
from typing import Dict, Any
2222

2323

2424
class itkCType:
25-
__c_types__ = {}
26-
__c_types_for_dtype__ = {}
25+
__c_types__: Dict[str, Any] = {}
26+
__c_types_for_dtype__: Dict[str, Any] = {}
2727

28-
def __init__(self, name, short_name, np_dtype=None):
28+
def __init__(self, name: str, short_name: str, np_dtype=None):
2929
self.name = name
3030
self.short_name = short_name
3131
self.dtype = np_dtype

0 commit comments

Comments
 (0)