Skip to content

Conversation

@nicopop
Copy link
Contributor

@nicopop nicopop commented Dec 17, 2024

its the old #65 but better (hopefully)
it now can convert even weird types like:

tmp = convert_string_to_type("['test','test2']", Optional[list[str]|str|Union[int, None]] )
# tmp -> ["test","test2"]

also to avoid line ending issues after this I set my git to autocrlf = true and thus converted helpers back to crlf (hopefully it works this time)

I got a require function called YamlValueCompare that will use this ready.
compare with what and how you might ask? you'll see after this merge probably (don't delete the branch plz)

@nicopop nicopop self-assigned this Dec 17, 2024
silasary
silasary previously approved these changes Dec 18, 2024
@silasary
Copy link
Collaborator

Diff for Helpers.py (after ignoring whitespace changes) is:

  • A couple new imports
  • new function

@silasary silasary merged commit 68560ea into main Dec 30, 2024
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.

4 participants