9696 from enum import Enum
9797
9898 from .._api import (
99- T_NotificationDisabledCategory ,
99+ T_NotificationDisabledClassification ,
100100 T_NotificationMinimumSeverity ,
101101 T_RoutingControl ,
102102 )
@@ -143,11 +143,12 @@ def driver(
143143 notifications_min_severity : (
144144 T_NotificationMinimumSeverity | None
145145 ) = ...,
146+ # deprecated in favor of notifications_disabled_classifications
146147 notifications_disabled_categories : (
147- t .Iterable [T_NotificationDisabledCategory ] | None
148+ t .Iterable [T_NotificationDisabledClassification ] | None
148149 ) = ...,
149150 notifications_disabled_classifications : (
150- t .Iterable [T_NotificationDisabledCategory ] | None
151+ t .Iterable [T_NotificationDisabledClassification ] | None
151152 ) = ...,
152153 warn_notification_severity : (
153154 T_NotificationMinimumSeverity | None
@@ -542,11 +543,12 @@ def session(
542543 notifications_min_severity : (
543544 T_NotificationMinimumSeverity | None
544545 ) = ...,
546+ # deprecated in favor of notifications_disabled_classifications
545547 notifications_disabled_categories : (
546- t .Iterable [T_NotificationDisabledCategory ] | None
548+ t .Iterable [T_NotificationDisabledClassification ] | None
547549 ) = ...,
548550 notifications_disabled_classifications : (
549- t .Iterable [T_NotificationDisabledCategory ] | None
551+ t .Iterable [T_NotificationDisabledClassification ] | None
550552 ) = ...,
551553 # undocumented/unsupported options
552554 # they may be change or removed any time without prior notice
@@ -572,7 +574,10 @@ def session(self, **config) -> AsyncSession:
572574 :raises DriverError: if the driver has been closed.
573575
574576 .. versionchanged:: 6.0
575- Raise :exc:`DriverError` if the driver has been closed.
577+
578+ * Raise :exc:`DriverError` if the driver has been closed.
579+ * Deprecated ``notifications_disabled_categories`` in favor of
580+ ``notifications_disabled_classifications``.
576581 """
577582 # Would work just fine, but we don't want to introduce yet
578583 # another undocumented/unsupported config option.
@@ -1001,10 +1006,10 @@ async def verify_connectivity(
10011006 T_NotificationMinimumSeverity | None
10021007 ) = ...,
10031008 notifications_disabled_categories : (
1004- t .Iterable [T_NotificationDisabledCategory ] | None
1009+ t .Iterable [T_NotificationDisabledClassification ] | None
10051010 ) = ...,
10061011 notifications_disabled_classifications : (
1007- t .Iterable [T_NotificationDisabledCategory ] | None
1012+ t .Iterable [T_NotificationDisabledClassification ] | None
10081013 ) = ...,
10091014 # undocumented/unsupported options
10101015 initial_retry_delay : float = ...,
@@ -1078,10 +1083,10 @@ async def get_server_info(
10781083 T_NotificationMinimumSeverity | None
10791084 ) = ...,
10801085 notifications_disabled_categories : (
1081- t .Iterable [T_NotificationDisabledCategory ] | None
1086+ t .Iterable [T_NotificationDisabledClassification ] | None
10821087 ) = ...,
10831088 notifications_disabled_classifications : (
1084- t .Iterable [T_NotificationDisabledCategory ] | None
1089+ t .Iterable [T_NotificationDisabledClassification ] | None
10851090 ) = ...,
10861091 # undocumented/unsupported options
10871092 initial_retry_delay : float = ...,
0 commit comments