This has been fixed properly in pygobject 3.11.4, and I just committed a test case for this to pygobject upstream master.
This has been fixed properly in pygobject 3.11.4, and I just committed a test case for this to pygobject upstream master.