JupiterBroadcasting / JupiterBroadcasting/show-scraper

Very strange behavior from pydantic_yaml...

Open
#21 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5
Forks
5
PR merge metrics
No merged PRs in 30d

Description

So, this is so strange...I've gotten things to work with loading the people & sponsors as markdown files, but it's working in the weirdest way

So, whenever I load the pydantic_yaml library along side another library [frontmatter](https://pypi.org/project/frontmatter/) (which is really cool and compliments the show scrapper well since we're creating posts), everything works. But I'm not even using the pydantic_yaml library at all, I'm just loading one of their models...that's it...it's like whenever I do that transparently it modifies the behavior of pydantic types and makes them interpretable by the frontmatter's yaml parser (essentially converting them to string instead of HttpUrl types) even though the pydantic_yaml library isn't used anywhere in our project...

I'm guessing that it's happening because of something in [this line](https://github.com/NowanIlfideme/pydantic-yaml/blob/4f698b6eb04d1cd722709cff241ab149d639c0a2/pydantic_yaml/main.py#L30) since it's called `hacky_stuff`, and it's really cool but very odd...

I've recorded my screen to show how it works and then doesn't work, with the only different being me uncommenting that line...very odd stuff but it's working :sweat_smile:

[![asciicast](https://asciinema.org/a/fR4VIxraR9aG44rHPc9K6zMtA.svg)](https://asciinema.org/a/fR4VIxraR9aG44rHPc9K6zMtA)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.