File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def test_quota_limiters_no_limiters_pg_storage() -> None:
4040 gss_encmode = constants .POSTGRES_DEFAULT_GSS_ENCMODE ,
4141 ca_cert_path = None ,
4242 )
43- configuration .limiters = None # pyright: ignore
43+ configuration .limiters = None # pyright: ignore[reportAttributeAccessIssue]
4444 limiters = QuotaLimiterFactory .quota_limiters (configuration )
4545 assert not limiters
4646
@@ -51,7 +51,7 @@ def test_quota_limiters_no_limiters_sqlite_storage() -> None:
5151 configuration .sqlite = SQLiteDatabaseConfiguration (
5252 db_path = "/foo/bar" ,
5353 )
54- configuration .limiters = None # pyright: ignore
54+ configuration .limiters = None # pyright: ignore[reportAttributeAccessIssue]
5555 limiters = QuotaLimiterFactory .quota_limiters (configuration )
5656 assert not limiters
5757
@@ -274,7 +274,9 @@ def test_quota_limiters_invalid_limiter_type(mocker: MockerFixture) -> None:
274274 period = "5 days" ,
275275 ),
276276 ]
277- configuration .limiters [0 ].type = "foo" # pyright: ignore
277+ configuration .limiters [0 ].type = (
278+ "foo" # pyright: ignore[reportAttributeAccessIssue]
279+ )
278280 # do not use connection to real PostgreSQL instance
279281 mocker .patch ("psycopg2.connect" )
280282 with pytest .raises (ValueError , match = "Invalid limiter type: foo" ):
You can’t perform that action at this time.
0 commit comments