Skip to content

Commit 051872e

Browse files
committed
Add mypy typing to registration dict.
1 parent 6b2d395 commit 051872e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sdks/python/apache_beam/yaml/yaml_provider.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import uuid
3030
from typing import Any
3131
from typing import Callable
32+
from typing import Dict
3233
from typing import Iterable
3334
from typing import Mapping
3435

@@ -106,7 +107,7 @@ def as_provider_list(name, lst):
106107

107108
class ExternalProvider(Provider):
108109
"""A Provider implemented via the cross language transform service."""
109-
_provider_types = {}
110+
_provider_types: Dict[str, Callable[..., Provider]] = {}
110111

111112
def __init__(self, urns, service):
112113
self._urns = urns

0 commit comments

Comments
 (0)