File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ dev = [
6161 " mypy<1.20" ,
6262 " pytest<10" ,
6363 " pytz" ,
64- " ruff<0.15 " ,
64+ " ruff<0.16 " ,
6565]
6666docs = [
6767 " sphinx" ,
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ def next(self):
193193 else :
194194 raise ProgrammingError ("Cursor closed" )
195195
196- __next__ = next
196+ __next__ = next # noqa: A003
197197
198198 @property
199199 def description (self ):
Original file line number Diff line number Diff line change @@ -250,9 +250,9 @@ def test_execute_custom_converter(mocked_connection):
250250 # Extends the DefaultTypeConverter
251251 converter = DefaultTypeConverter (
252252 {
253- DataType .BIT : lambda value : value is not None
254- and int (value [2 :- 1 ], 2 )
255- or None
253+ DataType .BIT : lambda value : (
254+ value is not None and int (value [2 :- 1 ], 2 ) or None
255+ )
256256 }
257257 )
258258 cursor = mocked_connection .cursor (converter = converter )
Original file line number Diff line number Diff line change @@ -227,7 +227,6 @@ def doctest_node():
227227
228228
229229class HttpsServer (HTTPServer ):
230-
231230 PORT = 65534
232231 HOST = "localhost"
233232 CERT_FILE = assets_path ("pki/server_valid.pem" )
You can’t perform that action at this time.
0 commit comments