Skip to content

Conversation

@gboutry
Copy link
Contributor

@gboutry gboutry commented Mar 28, 2025

Description

Having list[str] has type-hinting made working with a type-checker awkward as an addresses is defined as a dict of mostly [str, str] key-values pairs, with one key-value being a [str, boolean] key-value pairs.

QA Steps

Just a type hint change

Notes & Discussion

I chose not to type as typing.List[typing.Dict[str, typing.Union[str, boolean]]] as it would make working with that type also awkward...

Having `list[str]` has type-hinting made working with a type-checker
awkward as an addresses is defined as a dict of mostly [str, str]
key-values pairs, with one key-value being a [str, boolean] key-value
pairs.

Signed-off-by: Guillaume Boutry <[email protected]>
@benhoyt
Copy link
Collaborator

benhoyt commented May 15, 2025

/build

@benhoyt
Copy link
Collaborator

benhoyt commented May 15, 2025

/merge

@jujubot jujubot merged commit a05c314 into juju:main May 15, 2025
2 of 3 checks passed
@dimaqq dimaqq mentioned this pull request May 23, 2025
jujubot added a commit that referenced this pull request May 25, 2025
#1271

#### Description

PR to release python-libjuju 3.6.1.2


Runtime fixes:
- #1265 

Typing fixes:
- #1258

Chores & CI:
- #1268
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants