Skip to content

Allow getPrimary to return None#16

Merged
Kalmat merged 2 commits into
masterfrom
getPrimary-to-return-None
Jun 26, 2026
Merged

Allow getPrimary to return None#16
Kalmat merged 2 commits into
masterfrom
getPrimary-to-return-None

Conversation

@Avasam

@Avasam Avasam commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Allow getPrimary to return None if the underlying Monitor() call throws a ValueError (no primary monitor)
Note that the docstring was even mentioning a possible None return type !

@Avasam Avasam requested a review from Kalmat June 24, 2026 23:29
Comment thread src/pymonctl/_main.py
Comment thread src/pymonctl/_pymonctl_linux.py
Comment thread src/pymonctl/_main.py
@Avasam Avasam force-pushed the getPrimary-to-return-None branch from 1f9981d to a4e55fa Compare June 24, 2026 23:40
@Kalmat Kalmat merged commit 532e649 into master Jun 26, 2026
40 checks passed
@Avasam Avasam deleted the getPrimary-to-return-None branch June 26, 2026 07:49
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.

2 participants