Skip to content

Conversation

@kra-mo
Copy link

@kra-mo kra-mo commented Nov 10, 2025

This seems to work consistently, automatically unless you rely on the implicit nullability of a property. In that case, you will need to manually type it as:

prop = GObject.Property[T | None](type=T)

However, given that this behavior is ignored in other places and that the alternative would be wildly more annoying to deal with, it should probably be fine.

See https://gitlab.gnome.org/GNOME/pygobject/-/issues/701

This seems to work consistently, automatically
unless you rely on the implicit nullability of a property.
In that case, you will need to manually type it as:

```
prop = GObject.Property[T | None](type=T)
```

However, given that this behavior is ignored in other places
and that the alternative would be wildly more annoying
to deal with, it should probably be fine.
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