Skip to content

Commit aa0df6b

Browse files
authored
docs: tweak
1 parent 1432b19 commit aa0df6b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/mss/base.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def close(self) -> None:
142142
def grab(self, monitor: Monitor | tuple[int, int, int, int], /) -> ScreenShot:
143143
"""Retrieve screen pixels for a given monitor.
144144
145-
Note: *monitor* can be a tuple like the one
146-
py:meth:`PIL.ImageGrab.grab` accepts: `(left, top, right, bottom)`
145+
Note: ``monitor`` can be a tuple like the one
146+
:py:meth:`PIL.ImageGrab.grab` accepts: ``(left, top, right, bottom)``
147147
148148
:param monitor: The coordinates and size of the box to capture.
149149
See :meth:`monitors <monitors>` for object details.
@@ -177,11 +177,11 @@ def monitors(self) -> Monitors:
177177
If the monitor has rotation, you have to deal with it
178178
inside this method.
179179
180-
This method has to fill self._monitors with all information
180+
This method has to fill ``self._monitor``s with all information
181181
and use it as a cache:
182182
183-
- self._monitors[0] is a dict of all monitors together
184-
- self._monitors[N] is a dict of the monitor N (with N > 0)
183+
- ``self._monitors[0]`` is a dict of all monitors together
184+
- ``self._monitors[N]`` is a dict of the monitor N (with N > 0)
185185
186186
Each monitor is a dict with:
187187
@@ -247,7 +247,7 @@ def save(
247247

248248
def shot(self, /, **kwargs: Any) -> str:
249249
"""Helper to save the screenshot of the 1st monitor, by default.
250-
You can pass the same arguments as for ``save``.
250+
You can pass the same arguments as for :meth:`save`.
251251
"""
252252
kwargs["mon"] = kwargs.get("mon", 1)
253253
return next(self.save(**kwargs))

0 commit comments

Comments
 (0)