Skip to content

Commit

Permalink
Suppress pkg_resources related warnings (#8259)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 50760232d6e046c761f10e21cf365f23c61509f8
  • Loading branch information
voodoo11 authored and Manul from Pathway committed Feb 19, 2025
1 parent 84a4ec9 commit e3bd71f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/pathway/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Copyright © 2024 Pathway
# Copyright © 2025 Pathway

from __future__ import annotations

import pathway._engine_finder # noqa: F401 # isort: split
from pathway.internals import warnings # noqa: F401 # isort: split

import pathway.reducers as reducers
import pathway.universes as universes
Expand Down
14 changes: 14 additions & 0 deletions python/pathway/internals/warnings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright © 2025 Pathway

import warnings

warnings.filterwarnings(
"ignore",
message="Deprecated call to `pkg_resources.declare_namespace",
category=DeprecationWarning,
)
warnings.filterwarnings(
"ignore",
message="pkg_resources is deprecated as an API",
category=DeprecationWarning,
)

0 comments on commit e3bd71f

Please sign in to comment.