-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Make sure nullable attributes icon and cover are set to None #220
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #220 +/- ##
===========================================
- Coverage 100.00% 99.67% -0.33%
===========================================
Files 7 7
Lines 300 304 +4
===========================================
+ Hits 300 303 +3
- Misses 0 1 +1 ☔ View full report in Codecov by Sentry. |
Thanks for the PR @FlorianWilhelm! I went with a bit more extreme approach, can you tell me if the latest commit works for you? See the rationale in #101. |
PS – Regarding Ultimate Notion, I'm always glad to see some effort to build a higher-level library on top of notion-sdk-py so thank you for this! Did you check notional? It's been there for a while now and seems to be willing to achieve the same goals as you are and would probably benefit from more contributors. :) Also, if you see things that are missing from notion-sdk-py but do exist in notion-sdk-js (e.g. methods type hints), please consider contributing here rather than downstream! |
@ramnes Thanks for fixing this issue and I think your approach is even nicer than my PR. Regarding notional, I tried to use it, but it doesn't seem to be under active development anymore, and I don't agree with many of the design decision. This is why I copied some parts over as I like the Pydantic approach, but added an extra layer of indirection, which famously solves almost all problems in computer science 😅. I also think that Ultimate Notion is much easier to use compared to Notional and of course more pythonic. But doesn't every developer say that about his/her own software? ;-) I'll definitely contribute to notion-sdk-py whenever I find an issue, as your package is the base for my package. Sadly, I also found a lot of bugs within the Notion API itself, but the Notion devs are really not that responsive. For instance, whenever I try to make a self-referential two-way relation, for instance to express a parent task and child tasks in a task database, the Notion API only returns a one-way relation. Creating a two-way relation from a database A to a database B works perfectly but only if A is not B. |
Got to admit that I haven't talked to them much so far. Did you try the Notion API developers Slack? |
This fixes #219.
It would be really nice if this could be merged and released so that I can also make a new release of Ultimate Notion. Thank you 🙏