Skip to content

Commit

Permalink
Update UID docstring to make it less OS-specific
Browse files Browse the repository at this point in the history
  • Loading branch information
Crozzers committed Oct 13, 2024
1 parent 05ad0c0 commit 234d790
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions screen_brightness_control/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,7 @@ def list_monitors_info(
print('Method:', display['method'])
# the EDID string associated with that display
print('EDID:', display['edid'])
# The UID of the display.
# On Windows, this identifier is derived from the InstanceName (WMI) or DeviceID (win32api),
# and represents the connection details (e.g., port, path) rather than the physical display itself.
# It changes if the display is connected to a different port or system.
# The UID of the display
print('UID:', display['uid'])
```
'''
Expand Down Expand Up @@ -350,7 +347,7 @@ class Display():
This will be a class from either the windows or linux sub-module'''

uid: Optional[str] = None
"""'UID for the display connection, extracted from InstanceName (WMI) or DeviceID (win32api) on Windows."""
'''A unique identifier for the display. This is usually inferred from the display's connection to the machine.'''
edid: Optional[str] = None
'''A 256 character hex string containing information about a display and its capabilities'''
manufacturer: Optional[str] = None
Expand Down
2 changes: 1 addition & 1 deletion screen_brightness_control/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@
- name (str)
- index (int)
See `Display` for descriptions of each property and its type
See `.Display` for descriptions of each property and its type
'''

0 comments on commit 234d790

Please sign in to comment.