The Github API endpoints for Get Repository and Update Repository have an attribute/parameter called has_discussions, but this property isn't implemented in the PyGithub repository object.
Could this property please be implemented to make it possible to enable/disable and check the status of repos' Discussions with this library?