Skip to content

Commit

Permalink
fix typeerror in py3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Jul 23, 2024
1 parent 5aeedca commit d6ba382
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/posit/connect/env.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
from __future__ import annotations

from typing import Any, List, Iterable, MutableMapping, Optional, overload
from typing import (
Any,
Dict,
List,
Iterable,
MutableMapping,
Optional,
overload,
)

from requests import Session

Expand Down Expand Up @@ -185,7 +193,7 @@ def update(self, other=None, /, **kwargs: str) -> None:
... ]
... )
"""
d = dict[str, str]()
d: Dict[str, str] = {}
if other is not None:
if isinstance(other, MutableMapping):
d.update(other)
Expand Down

0 comments on commit d6ba382

Please sign in to comment.