Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions av/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def __iter__(self):
def __repr__(self):
return f"av.Dictionary({dict(self)!r})"

def keys(self):
return list(self)

def copy(self):
other: Dictionary = Dictionary()
lib.av_dict_copy(cython.address(other.ptr), self.ptr, 0)
Expand Down
1 change: 1 addition & 0 deletions av/dictionary.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Dictionary:
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[str]: ...
def __repr__(self) -> str: ...
def keys(self) -> Iterable[str]: ...
def copy(self) -> Dictionary: ...
def pop(self, key: str) -> str: ...
def update(
Expand Down
Loading