From 4edeab3e477efbff92e10b00b526ee8f8f1f5a94 Mon Sep 17 00:00:00 2001 From: Flavio Curella Date: Wed, 21 Aug 2024 10:48:26 -0500 Subject: [PATCH] fix typing on Python 3.8 --- faker/providers/address/en_MS/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faker/providers/address/en_MS/__init__.py b/faker/providers/address/en_MS/__init__.py index 2b9a43aa62..0983ff6e5f 100644 --- a/faker/providers/address/en_MS/__init__.py +++ b/faker/providers/address/en_MS/__init__.py @@ -1,5 +1,5 @@ from collections import OrderedDict -from typing import Optional +from typing import Dict, List, Optional from ... import ElementsType from ..en import Provider as AddressProvider @@ -154,7 +154,7 @@ class Provider(AddressProvider): ) # https://en.wikipedia.org/wiki/States_and_federal_territories_of_Malaysia - states: dict[str, list[str]] = { + states: Dict[str, List[str]] = { "JHR": ["Johor Darul Ta'zim", "Johor"], "KDH": ["Kedah Darul Aman", "Kedah"], "KTN": ["Kelantan Darul Naim", "Kelantan"],