8000 Mark `base.kerning.py` docstrings as raw to avoid `SyntaxWarning` by roberto-arista · Pull Request #830 · robotools/fontParts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Mark base.kerning.py docstrings as raw to avoid SyntaxWarning #830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Lib/fontParts/base/kerning.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _round(self, multiple=1):
# -------------

def interpolate(self, factor, minKerning, maxKerning, round=True, suppressError=True):
"""
r"""
Interpolates all pairs between two :class:`BaseKerning` objects:

>>> myKerning.interpolate(kerningOne, kerningTwo)
Expand Down Expand Up @@ -221,7 +221,7 @@ def _testKerningGroupCompatibility(minKerning, maxKerning, suppressError=False):
# ---------------------

def remove(self, pair):
"""
r"""
Removes a pair from the Kerning. **pair** will
be a ``tuple`` of two :ref:`type-string`\s.

Expand All @@ -245,7 +245,7 @@ def asDict(self, returnIntegers=True):
# -------------------

def __contains__(self, pair):
"""
r"""
Tests to see if a pair is in the Kerning.
**pair** will be a ``tuple`` of two :ref:`type-string`\s.

Expand All @@ -258,7 +258,7 @@ def __contains__(self, pair):
return super(BaseKerning, self).__contains__(pair)

def __delitem__(self, pair):
"""
r"""
Removes **pair** from the Kerning. **pair** is a ``tuple`` of two
:ref:`type-string`\s.::

Expand All @@ -267,7 +267,7 @@ def __delitem__(self, pair):
super(BaseKerning, self).__delitem__(pair)

def __getitem__(self, pair):
"""
r"""
Returns the kerning value of the pair. **pair** is a ``tuple`` of
two :ref:`type-string`\s.

Expand Down Expand Up @@ -309,7 +309,7 @@ def __len__(self):
return super(BaseKerning, self).__len__()

def __setitem__(self, pair, value):
"""
r"""
Sets the **pair** to the list of **value**. **pair** is the
pair as a ``tuple`` of two :ref:`type-string`\s and **value**

Expand All @@ -330,7 +330,7 @@ def clear(self):
super(BaseKerning, self).clear()

def get(self, pair, default=None):
"""
r"""
Returns the value for the kerning pair.
**pair** is a ``tuple`` of two :ref:`type-string`\s, and the returned
values will either be :ref:`type-int-float` or ``None``
Expand All @@ -350,7 +350,7 @@ def get(self, pair, default=None):
return super(BaseKerning, self).get(pair, default)

def find(self, pair, default=None):
"""
r"""
Returns the value for the kerning pair - even if the pair only exists
implicitly (one or both sides may be members of a kerning group).

Expand Down Expand Up @@ -379,7 +379,7 @@ def _find(self, pair, default=None):
return lookupKerningValue(pair, self, groups, fallback=default)

def items(self):
"""
r"""
Returns a list of ``tuple``\s of each pair and value. Pairs are a
``tuple`` of two :ref:`type-string`\s and values are :ref:`type-int-float`.

Expand All @@ -401,7 +401,7 @@ def keys(self):
return super(BaseKerning, self).keys()

def pop(self, pair, default=None):
"""
r"""
Removes the **pair** from the Kerning and returns the value as an ``int``.
If no pair is found, **default** is returned. **pair** is a
``tuple`` of two :ref:`type-string`\s. This must return either
Expand All @@ -428,7 +428,7 @@ def update(self, otherKerning):
super(BaseKerning, self).update(otherKerning)

def values(self):
"""
r"""
Returns a ``list`` of each pair's values, the values will be
:ref:`type-int-float`\s.

Expand Down
0