prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Add support for --reload to monitor additional file types.
  The "reload" process currently only monitors ".py" files in various directories. I have a changes that will pass in a list of additional "reload_suffixes" that the process will monitor. This allows the service to monitor data files in addition to code files.
  
  Any feedback on whether this is useful to others?
  
  <!-- POLAR PLEDGE BADGE START -->
  > [!IMPORTANT]
  > - We're using [Polar.sh](https://polar.sh/encode) so you can upvote and help fund this issue.
  > - We receive the funding once the issue is completed & confirmed by you.
  > - Thank you in advance for helping prioritize & fund our backlog.
  
  <a href="https://polar.sh/encode/uvicorn/issues/528">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/encode/uvicorn/issues/528/pledge.svg?darkmode=1">
    <img alt="Fund with Polar" src="https://polar.sh/api/github/encode/uvicorn/issues/528/pledge.svg">
  </picture>
  </a>
  <!-- POLAR PLEDGE BADGE END -->
  
  
  </issue>
  <code>
  [start of uvicorn/supervisors/statreload.py]
  1 import logging
  2 import os
  3 from pathlib import Path
  4 
  5 from uvicorn.supervisors.basereload import BaseReload
  6 
  7 logger = logging.getLogger("uvicorn.error")
  8 
  9 
  10 class StatReload(BaseReload):
  11     def __init__(self, config, target, sockets):
  12         super().__init__(config, target, sockets)
  13         self.reloader_name = "statreload"
  14         self.mtimes = {}
  15 
  16     def should_restart(self):
  17         for filename in self.iter_py_files():
  18             try:
  19                 mtime = os.path.getmtime(filename)
  20             except OSError:  # pragma: nocover
  21                 continue
  22 
  23             old_time = self.mtimes.get(filename)
  24             if old_time is None:
  25                 self.mtimes[filename] = mtime
  26                 continue
  27             elif mtime > old_time:
  28                 display_path = os.path.normpath(filename)
  29                 if Path.cwd() in Path(filename).parents:
  30                     display_path = os.path.normpath(os.path.relpath(filename))
  31                 message = "Detected file change in '%s'. Reloading..."
  32                 logger.warning(message, display_path)
  33                 return True
  34         return False
  35 
  36     def iter_py_files(self):
  37         for reload_dir in self.config.reload_dirs:
  38             for subdir, dirs, files in os.walk(reload_dir):
  39                 for file in files:
  40                     if file.endswith(".py"):
  41                         yield subdir + os.sep + file
  42
  [end of uvicorn/supervisors/statreload.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/uvicorn/supervisors/statreload.py b/uvicorn/supervisors/statreload.py
  --- a/uvicorn/supervisors/statreload.py
  +++ b/uvicorn/supervisors/statreload.py
  @@ -14,7 +14,7 @@
           self.mtimes = {}
   
       def should_restart(self):
  -        for filename in self.iter_py_files():
  +        for filename in self.iter_files():
               try:
                   mtime = os.path.getmtime(filename)
               except OSError:  # pragma: nocover
  @@ -33,9 +33,9 @@
                   return True
           return False
   
  -    def iter_py_files(self):
  +    def iter_files(self):
           for reload_dir in self.config.reload_dirs:
               for subdir, dirs, files in os.walk(reload_dir):
                   for file in files:
  -                    if file.endswith(".py"):
  +                    if not file.startswith("."):
                           yield subdir + os.sep + file
  
verification_info: {"golden_diff": "diff --git a/uvicorn/supervisors/statreload.py b/uvicorn/supervisors/statreload.py\n--- a/uvicorn/supervisors/statreload.py\n+++ b/uvicorn/supervisors/statreload.py\n@@ -14,7 +14,7 @@\n         self.mtimes = {}\n \n     def should_restart(self):\n-        for filename in self.iter_py_files():\n+        for filename in self.iter_files():\n             try:\n                 mtime = os.path.getmtime(filename)\n             except OSError:  # pragma: nocover\n@@ -33,9 +33,9 @@\n                 return True\n         return False\n \n-    def iter_py_files(self):\n+    def iter_files(self):\n         for reload_dir in self.config.reload_dirs:\n             for subdir, dirs, files in os.walk(reload_dir):\n                 for file in files:\n-                    if file.endswith(\".py\"):\n+                    if not file.startswith(\".\"):\n                         yield subdir + os.sep + file\n", "issue": "Add support for --reload to monitor additional file types.\nThe \"reload\" process currently only monitors \".py\" files in various directories. I have a changes that will pass in a list of additional \"reload_suffixes\" that the process will monitor. This allows the service to monitor data files in addition to code files.\r\n\r\nAny feedback on whether this is useful to others?\n\n<!-- POLAR PLEDGE BADGE START -->\n> [!IMPORTANT]\n> - We're using [Polar.sh](https://polar.sh/encode) so you can upvote and help fund this issue.\n> - We receive the funding once the issue is completed & confirmed by you.\n> - Thank you in advance for helping prioritize & fund our backlog.\n\n<a href=\"https://polar.sh/encode/uvicorn/issues/528\">\n<picture>\n  <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://polar.sh/api/github/encode/uvicorn/issues/528/pledge.svg?darkmode=1\">\n  <img alt=\"Fund with Polar\" src=\"https://polar.sh/api/github/encode/uvicorn/issues/528/pledge.svg\">\n</picture>\n</a>\n<!-- POLAR PLEDGE BADGE END -->\n\n", "before_files": [{"content": "import logging\nimport os\nfrom pathlib import Path\n\nfrom uvicorn.supervisors.basereload import BaseReload\n\nlogger = logging.getLogger(\"uvicorn.error\")\n\n\nclass StatReload(BaseReload):\n    def __init__(self, config, target, sockets):\n        super().__init__(config, target, sockets)\n        self.reloader_name = \"statreload\"\n        self.mtimes = {}\n\n    def should_restart(self):\n        for filename in self.iter_py_files():\n            try:\n                mtime = os.path.getmtime(filename)\n            except OSError:  # pragma: nocover\n                continue\n\n            old_time = self.mtimes.get(filename)\n            if old_time is None:\n                self.mtimes[filename] = mtime\n                continue\n            elif mtime > old_time:\n                display_path = os.path.normpath(filename)\n                if Path.cwd() in Path(filename).parents:\n                    display_path = os.path.normpath(os.path.relpath(filename))\n                message = \"Detected file change in '%s'. Reloading...\"\n                logger.warning(message, display_path)\n                return True\n        return False\n\n    def iter_py_files(self):\n        for reload_dir in self.config.reload_dirs:\n            for subdir, dirs, files in os.walk(reload_dir):\n                for file in files:\n                    if file.endswith(\".py\"):\n                        yield subdir + os.sep + file\n", "path": "uvicorn/supervisors/statreload.py"}]}