Dave Tapley

Results 162 comments of Dave Tapley

Repro'd on both v3 and v4 with `name` parameter, 'restart failed jobs' didn't help (same error). Removed `name:` and it worked first time. ~Not sure if correlated.~ _Edit: added `name:`...

Oof, this just caught me out, albeit for `value: true` instead of `value: 'true'`. Could we just `str(value)` here? https://github.com/ansible-collections/community.general/blob/7d06be1c2088a45d93e4158336552a7e24c76327/plugins/modules/xml.py#L734-L735

@cplee FYI this is running behind: ```sh gh extension install https://github.com/nektos/gh-act gh act --version # act version 0.2.61 ``` ```sh curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash bin/act...

... although, `str | list[str]` is a bit awkward since the implementor will have to assert the correct type based on: https://github.com/falconry/falcon/blob/6d7a45b207b6ca6372f26f96e331a3eb8af6ff7a/falcon/routing/converters.py#L39 I'm [guessing](https://discuss.python.org/t/typing-instance-based-on-classvar/69716) there's no way to express that...

... I thought I could workaround with: Replace: ```py class MyConvertor(BaseConverter): CONSUME_MULTIPLE_SEGMENTS = True ``` With: ```py class MyConvertor(PathConverter): ... ``` ... but `PathConverter` is typed to return `str`, not...

Ooh, someone suggested a good workaround using Protocols here: https://discuss.python.org/t/typing-instance-based-on-classvar/69716/2

I assume related: If I use an `a` without a `with`, then I need to manually add a space at the start of a `text` immediately following the `a`.

I thought maybe I could workaround with: ```py sort: Foo = field(serializer=render_to_dict, deserializer=render_from_dict) ``` But that's: ``` serde.compat.SerdeError: 'Foo' object has no attribute '__serde__' ``` And if I change to:...

Another variant using the [PEP 695](https://peps.python.org/pep-0695/) `type`: ```py from dataclasses import dataclass from serde import to_dict @dataclass class Foo: a: list[str] print(to_dict(Foo(a=['a', 'b']))) # {'a': ['a', 'b']} type StrList =...

Maybe related / dupe of: - https://github.com/yukinarit/pyserde/issues/192