prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  A lone `Static` results in a `TooManyMatches` error when using `query_one`
  I've not dived into this beyond knocking up this example to isolate what I saw (about to head out of the door but wanted to record this as a reminder). With 0.27.0 (perhaps before too, just noting the version here for the record), this code:
  
  ```python
  from textual.app     import App, ComposeResult
  from textual.widgets import Static
  
  class OneStatic( App[ None ] ):
  
      def compose( self ) -> ComposeResult:
          yield Static()
  
      def on_mount( self ) -> None:
          self.query_one( Static ).update( "Hello, World!" )
  
  if __name__ == "__main__":
      OneStatic().run()
  ```
  
  results in a `TooManyMatches` error being raised from the `query_one`. With very early testing this only seems to be the case with `Static` (at least, I tested with `Label` and `Button` and they're fine).
  
  I think most people would rightly find this surprising.
  
  </issue>
  <code>
  [start of src/textual/widgets/_tooltip.py]
  1 from __future__ import annotations
  2 
  3 from textual.widgets import Static
  4 
  5 
  6 class Tooltip(Static):
  7     DEFAULT_CSS = """
  8     Tooltip {
  9         layer: _tooltips;
  10         margin: 1 2;
  11         padding: 1 2;
  12         background: $panel;
  13         width: auto;
  14         height: auto;
  15         constrain: inflect;
  16         max-width: 40;
  17         display: none;
  18     }
  19     """
  20
  [end of src/textual/widgets/_tooltip.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/src/textual/widgets/_tooltip.py b/src/textual/widgets/_tooltip.py
  --- a/src/textual/widgets/_tooltip.py
  +++ b/src/textual/widgets/_tooltip.py
  @@ -3,7 +3,7 @@
   from textual.widgets import Static
   
   
  -class Tooltip(Static):
  +class Tooltip(Static, inherit_css=False):
       DEFAULT_CSS = """
       Tooltip {
           layer: _tooltips;
  
verification_info: {"golden_diff": "diff --git a/src/textual/widgets/_tooltip.py b/src/textual/widgets/_tooltip.py\n--- a/src/textual/widgets/_tooltip.py\n+++ b/src/textual/widgets/_tooltip.py\n@@ -3,7 +3,7 @@\n from textual.widgets import Static\n \n \n-class Tooltip(Static):\n+class Tooltip(Static, inherit_css=False):\n     DEFAULT_CSS = \"\"\"\n     Tooltip {\n         layer: _tooltips;\n", "issue": "A lone `Static` results in a `TooManyMatches` error when using `query_one`\nI've not dived into this beyond knocking up this example to isolate what I saw (about to head out of the door but wanted to record this as a reminder). With 0.27.0 (perhaps before too, just noting the version here for the record), this code:\r\n\r\n```python\r\nfrom textual.app     import App, ComposeResult\r\nfrom textual.widgets import Static\r\n\r\nclass OneStatic( App[ None ] ):\r\n\r\n    def compose( self ) -> ComposeResult:\r\n        yield Static()\r\n\r\n    def on_mount( self ) -> None:\r\n        self.query_one( Static ).update( \"Hello, World!\" )\r\n\r\nif __name__ == \"__main__\":\r\n    OneStatic().run()\r\n```\r\n\r\nresults in a `TooManyMatches` error being raised from the `query_one`. With very early testing this only seems to be the case with `Static` (at least, I tested with `Label` and `Button` and they're fine).\r\n\r\nI think most people would rightly find this surprising.\n", "before_files": [{"content": "from __future__ import annotations\n\nfrom textual.widgets import Static\n\n\nclass Tooltip(Static):\n    DEFAULT_CSS = \"\"\"\n    Tooltip {\n        layer: _tooltips;\n        margin: 1 2;\n        padding: 1 2;\n        background: $panel;\n        width: auto;\n        height: auto;\n        constrain: inflect;\n        max-width: 40;\n        display: none;\n    }\n    \"\"\"\n", "path": "src/textual/widgets/_tooltip.py"}]}