Skip to content

Commit

Permalink
Remove deprecation module
Browse files Browse the repository at this point in the history
Going forward, we'll use type stubs / simple warnings for
deprecations.
  • Loading branch information
WyattBlue committed Sep 25, 2024
1 parent d1a21b5 commit 5f850cb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 126 deletions.
6 changes: 4 additions & 2 deletions av/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from __future__ import annotations

import argparse


def main():
def main() -> None:
parser = argparse.ArgumentParser()
parser.add_argument("--codecs", action="store_true")
parser.add_argument("--version", action="store_true")
Expand All @@ -13,7 +15,7 @@ def main():

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

by_config = {}
by_config: dict = {}
for libname, config in sorted(av._core.library_meta.items()):
version = config["version"]
if version[0] >= 0:
Expand Down
1 change: 0 additions & 1 deletion av/codec/context.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ from av.error cimport err_check
from av.packet cimport Packet
from av.utils cimport avrational_to_fraction, to_avrational

from av.deprecation import AVDeprecationWarning
from av.dictionary import Dictionary


Expand Down
80 changes: 0 additions & 80 deletions av/deprecation.py

This file was deleted.

43 changes: 0 additions & 43 deletions tests/test_deprecation.py

This file was deleted.

0 comments on commit 5f850cb

Please sign in to comment.