changes in code from code review

This commit is contained in:
Grzegorz Bokota
2020-06-22 13:55:04 +02:00
parent 4d5cf4629e
commit 36b8f7fff2
2 changed files with 15 additions and 13 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import bashlex # type: ignore
from typing import Dict, List, MutableMapping
from typing import Dict, List, Mapping
from . import bashlex_eval
@@ -61,7 +61,7 @@ class ParsedEnvironment:
def __init__(self, assignments: List[EnvironmentAssignment]):
self.assignments = assignments
def as_dictionary(self, prev_environment: MutableMapping[str, str]) -> Dict[str, str]:
def as_dictionary(self, prev_environment: Mapping[str, str]) -> Dict[str, str]:
environment = dict(**prev_environment)
for assignment in self.assignments: