Skip to content

Commit

Permalink
Fix typing for Py <= 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed May 14, 2023
1 parent e78fd98 commit dafb73c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dist: jammy
language: python
dist: jammy

matrix:
include:
Expand Down
3 changes: 2 additions & 1 deletion wsgidav/fs_dav_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import shutil
import stat
import sys
from typing import List

from wsgidav import util
from wsgidav.dav_error import HTTP_FORBIDDEN, DAVError
Expand Down Expand Up @@ -211,7 +212,7 @@ def get_last_modified(self):
def is_link(self):
return os.path.islink(self._file_path)

def get_member_names(self) -> list[str]:
def get_member_names(self) -> List[str]:
"""Return list of direct collection member names (utf-8 encoded).
See DAVCollection.get_member_names()
Expand Down

0 comments on commit dafb73c

Please sign in to comment.