diff --git a/kwant/physics/noise.py b/kwant/physics/noise.py
index de8d1334d5c0491e76b7906f92ae65ad780f1585..b565885f056976d2077ce9c37a3b345ac7733455 100644
--- a/kwant/physics/noise.py
+++ b/kwant/physics/noise.py
@@ -13,7 +13,7 @@ __all__ = ['two_terminal_shotnoise']
 
 
 def two_terminal_shotnoise(smatrix):
-    """Compute the shot-noise in a two-terminal setup.
+    r"""Compute the shot-noise in a two-terminal setup.
 
     In a two terminal system the shot noise is given by `tr((1 - t*t^\dagger) *
     t*t^\dagger)`.
diff --git a/kwant/solvers/common.py b/kwant/solvers/common.py
index 57c6fd35ec733165bd1aaf5ba04f0cfe6f598031..2c3f87a6154fed52fee0153d267f039083a2ef0d 100644
--- a/kwant/solvers/common.py
+++ b/kwant/solvers/common.py
@@ -555,7 +555,7 @@ class SparseSolver(metaclass=abc.ABCMeta):
 
     def wave_function(self, sys, energy=0, args=(), check_hermiticity=True,
                       *, params=None):
-        """
+        r"""
         Return a callable object for the computation of the wave function
         inside the scattering region.