Skip to content

Commit 5f850cb

Browse files
committed
Remove deprecation module
Going forward, we'll use type stubs / simple warnings for deprecations.
1 parent d1a21b5 commit 5f850cb

File tree

4 files changed

+4
-126
lines changed

4 files changed

+4
-126
lines changed

av/__main__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
from __future__ import annotations
2+
13
import argparse
24

35

4-
def main():
6+
def main() -> None:
57
parser = argparse.ArgumentParser()
68
parser.add_argument("--codecs", action="store_true")
79
parser.add_argument("--version", action="store_true")
@@ -13,7 +15,7 @@ def main():
1315

1416
print(f"PyAV v{av.__version__}")
1517

16-
by_config = {}
18+
by_config: dict = {}
1719
for libname, config in sorted(av._core.library_meta.items()):
1820
version = config["version"]
1921
if version[0] >= 0:

av/codec/context.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ from av.error cimport err_check
1111
from av.packet cimport Packet
1212
from av.utils cimport avrational_to_fraction, to_avrational
1313

14-
from av.deprecation import AVDeprecationWarning
1514
from av.dictionary import Dictionary
1615

1716

av/deprecation.py

Lines changed: 0 additions & 80 deletions
This file was deleted.

tests/test_deprecation.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)