File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -341,9 +341,11 @@ def get_bokeh(df, linear=False):
341341 df = df .merge (orient , on = "Type" , how = "left" )
342342 df ["Type" ] = df ["Type" ].str .replace ("_" , " " )
343343 try :
344+ # Opt in to future default behavior for type handling; only available in Python 3.11+
344345 with pd .option_context ('future.no_silent_downcasting' , True ):
345346 df ["has_orientation" ] = df ["has_orientation" ].fillna (value = False ).infer_objects ()
346347 except pd .errors .OptionError :
348+ # Kept for Python 3.10 compatibility, this whole try/except block can be simplified when 3.10 support is no longer needed
347349 df ["has_orientation" ] = df ["has_orientation" ].fillna (value = False ).infer_objects ()
348350
349351 df [
Original file line number Diff line number Diff line change 11[project ]
22name = " plannotate"
3- version = " 1.2.5.dev "
3+ version = " 1.2.5"
44description = " Webserver and command line tool for annotating engineered plasmids"
55readme = " README.md"
66requires-python = " >=3.10,<3.14"
You can’t perform that action at this time.
0 commit comments