from filestorage import FileItem as FileItem, FilterBase as FilterBase
from filestorage.exceptions import (
    FileExtensionNotAllowed as FileExtensionNotAllowed,
)
from typing import Any, List

class ValidateExtension(FilterBase):
    async_ok: bool = ...
    extensions: Any = ...
    def __init__(self, extensions: List[str]) -> None: ...
    def extension_allowed(self, ext: str) -> bool: ...
    def filename_allowed(self, filename: str) -> bool: ...

dfbf5ea1c53cf3e2e61e5676b1062c2b9956f178
<mask token>


class ValidateExtension(FilterBase):
    async_ok: bool = ...
    extensions: Any = ...
    <mask token>
    <mask token>

    def filename_allowed(self, filename: str) ->bool:
        ...

<mask token>


class ValidateExtension(FilterBase):
    async_ok: bool = ...
    extensions: Any = ...

    def __init__(self, extensions: List[str]) ->None:
        ...
    <mask token>

    def filename_allowed(self, filename: str) ->bool:
        ...

<mask token>


class ValidateExtension(FilterBase):
    async_ok: bool = ...
    extensions: Any = ...

    def __init__(self, extensions: List[str]) ->None:
        ...

    def extension_allowed(self, ext: str) ->bool:
        ...

    def filename_allowed(self, filename: str) ->bool:
        ...

from filestorage import FileItem as FileItem, FilterBase as FilterBase
from filestorage.exceptions import FileExtensionNotAllowed as FileExtensionNotAllowed
from typing import Any, List


class ValidateExtension(FilterBase):
    async_ok: bool = ...
    extensions: Any = ...

    def __init__(self, extensions: List[str]) ->None:
        ...

    def extension_allowed(self, ext: str) ->bool:
        ...

    def filename_allowed(self, filename: str) ->bool:
        ...

from filestorage import FileItem as FileItem, FilterBase as FilterBase
from filestorage.exceptions import (
    FileExtensionNotAllowed as FileExtensionNotAllowed,
)
from typing import Any, List

class ValidateExtension(FilterBase):
    async_ok: bool = ...
    extensions: Any = ...
    def __init__(self, extensions: List[str]) -> None: ...
    def extension_allowed(self, ext: str) -> bool: ...
    def filename_allowed(self, filename: str) -> bool: ...
