Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple english comments, doc changes, and minor changes. #865

Merged
merged 8 commits into from
Oct 14, 2024

Conversation

kristian-clausal
Copy link
Collaborator

No description provided.

Now that we've migrated to a newer version of Python,
Optional and Union can be replaced with pipe syntax
type hints.
One if -> elif.
Added a Wtp.warning().
Removed unused function stub.
Simple English Wiktionary does not have word head sections
like other wiktionaries have, but instead each entry (right
after the POS heading) starts with a table or two with the
inflection of the word, generated by templates.

Instead of making a new field, we collect the name and
arguments of these templates and add it to the word entry
data under `head_templates`.
I tried to hunt down why Pydantic models would return
a `{'': ''}` dict if given an empty dict. Was it because
it was a new object, so it wasn't counted as the default?
But why would a key-value pair appear, as strings??

Turns out, I was looking at the wrong test, and the problem
was in my first test where I had `args={"": ""}` so that
I could easily copy-paste everything...
Forgot to commit these minor things. Removed some obsolete
lines; apparently my LSP doesn't complain about unused global
CONST style things, which makes 100% sense.
@kristian-clausal kristian-clausal merged commit 2de260d into master Oct 14, 2024
10 checks passed
@kristian-clausal kristian-clausal deleted the simple-english branch October 14, 2024 08:15
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.

1 participant