prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  StaticFilesConfig and virtual directories
  I'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/using.html#). But because ``directories`` is defined as ``DirectoryPath``, pydantic checks if the given directories exist in the local filesystem. 
  
  This is not generally true, especially in any kind of virtual filesystem (e.g. a zipped package). I think this condition should be relaxed to support virtual filesystems.
  
  https://github.com/starlite-api/starlite/blob/9bb6dcd57c10a591377cf8e3a537e9292566d5b9/starlite/config/static_files.py#L32
  
  </issue>
  <code>
  [start of litestar/openapi/spec/enums.py]
  1 from enum import Enum
  2 
  3 __all__ = ("OpenAPIFormat", "OpenAPIType")
  4 
  5 
  6 class OpenAPIFormat(str, Enum):
  7     """Formats extracted from: https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#page-13"""
  8 
  9     DATE = "date"
  10     DATE_TIME = "date-time"
  11     TIME = "time"
  12     DURATION = "duration"
  13     URL = "url"
  14     EMAIL = "email"
  15     IDN_EMAIL = "idn-email"
  16     HOST_NAME = "hostname"
  17     IDN_HOST_NAME = "idn-hostname"
  18     IPV4 = "ipv4"
  19     IPV6 = "ipv6"
  20     URI = "uri"
  21     URI_REFERENCE = "uri-reference"
  22     URI_TEMPLATE = "uri-template"
  23     JSON_POINTER = "json-pointer"
  24     RELATIVE_JSON_POINTER = "relative-json-pointer"
  25     IRI = "iri-reference"
  26     IRI_REFERENCE = "iri-reference"  # noqa: PIE796
  27     UUID = "uuid"
  28     REGEX = "regex"
  29 
  30 
  31 class OpenAPIType(str, Enum):
  32     """An OopenAPI type."""
  33 
  34     ARRAY = "array"
  35     BOOLEAN = "boolean"
  36     INTEGER = "integer"
  37     NULL = "null"
  38     NUMBER = "number"
  39     OBJECT = "object"
  40     STRING = "string"
  41
  [end of litestar/openapi/spec/enums.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/litestar/openapi/spec/enums.py b/litestar/openapi/spec/enums.py
  --- a/litestar/openapi/spec/enums.py
  +++ b/litestar/openapi/spec/enums.py
  @@ -26,6 +26,7 @@
       IRI_REFERENCE = "iri-reference"  # noqa: PIE796
       UUID = "uuid"
       REGEX = "regex"
  +    BINARY = "binary"
   
   
   class OpenAPIType(str, Enum):
  
verification_info: {"golden_diff": "diff --git a/litestar/openapi/spec/enums.py b/litestar/openapi/spec/enums.py\n--- a/litestar/openapi/spec/enums.py\n+++ b/litestar/openapi/spec/enums.py\n@@ -26,6 +26,7 @@\n     IRI_REFERENCE = \"iri-reference\"  # noqa: PIE796\n     UUID = \"uuid\"\n     REGEX = \"regex\"\n+    BINARY = \"binary\"\n \n \n class OpenAPIType(str, Enum):\n", "issue": "StaticFilesConfig and virtual directories\nI'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/using.html#). But because ``directories`` is defined as ``DirectoryPath``, pydantic checks if the given directories exist in the local filesystem. \r\n\r\nThis is not generally true, especially in any kind of virtual filesystem (e.g. a zipped package). I think this condition should be relaxed to support virtual filesystems.\r\n\r\nhttps://github.com/starlite-api/starlite/blob/9bb6dcd57c10a591377cf8e3a537e9292566d5b9/starlite/config/static_files.py#L32\n", "before_files": [{"content": "from enum import Enum\n\n__all__ = (\"OpenAPIFormat\", \"OpenAPIType\")\n\n\nclass OpenAPIFormat(str, Enum):\n    \"\"\"Formats extracted from: https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#page-13\"\"\"\n\n    DATE = \"date\"\n    DATE_TIME = \"date-time\"\n    TIME = \"time\"\n    DURATION = \"duration\"\n    URL = \"url\"\n    EMAIL = \"email\"\n    IDN_EMAIL = \"idn-email\"\n    HOST_NAME = \"hostname\"\n    IDN_HOST_NAME = \"idn-hostname\"\n    IPV4 = \"ipv4\"\n    IPV6 = \"ipv6\"\n    URI = \"uri\"\n    URI_REFERENCE = \"uri-reference\"\n    URI_TEMPLATE = \"uri-template\"\n    JSON_POINTER = \"json-pointer\"\n    RELATIVE_JSON_POINTER = \"relative-json-pointer\"\n    IRI = \"iri-reference\"\n    IRI_REFERENCE = \"iri-reference\"  # noqa: PIE796\n    UUID = \"uuid\"\n    REGEX = \"regex\"\n\n\nclass OpenAPIType(str, Enum):\n    \"\"\"An OopenAPI type.\"\"\"\n\n    ARRAY = \"array\"\n    BOOLEAN = \"boolean\"\n    INTEGER = \"integer\"\n    NULL = \"null\"\n    NUMBER = \"number\"\n    OBJECT = \"object\"\n    STRING = \"string\"\n", "path": "litestar/openapi/spec/enums.py"}]}