File tree Expand file tree Collapse file tree
src/seclab_taskflows/mcp_servers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class AlertResults(Base):
2323 language : Mapped [str ]
2424 location : Mapped [str ]
2525 result : Mapped [str ] = mapped_column (Text )
26- created : Mapped [Optional [ str ] ]
26+ created : Mapped [str | None ]
2727 valid : Mapped [bool ] = mapped_column (nullable = False , default = True )
2828 completed : Mapped [bool ] = mapped_column (nullable = False , default = False )
2929
@@ -44,8 +44,8 @@ class AlertFlowGraph(Base):
4444 alert_canonical_id = Column (Integer , ForeignKey ("alert_results.canonical_id" , ondelete = "CASCADE" ))
4545 flow_data : Mapped [str ] = mapped_column (Text )
4646 repo : Mapped [str ]
47- prev : Mapped [Optional [ str ] ]
48- next : Mapped [Optional [ str ] ]
47+ prev : Mapped [str | None ]
48+ next : Mapped [str | None ]
4949 started : Mapped [bool ] = mapped_column (nullable = False , default = False )
5050
5151 def __repr__ (self ):
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class Source(Base):
1818 source_location : Mapped [str ]
1919 line : Mapped [int ]
2020 source_type : Mapped [str ]
21- notes : Mapped [Optional [ str ] ] = mapped_column (Text , nullable = True )
21+ notes : Mapped [str | None ] = mapped_column (Text , nullable = True )
2222
2323 def __repr__ (self ):
2424 return (
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ class GHSA(Base):
1616 ghsa_id : Mapped [str ]
1717 repo : Mapped [str ]
1818 severity : Mapped [str ]
19- cve_id : Mapped [Optional [ str ] ] = mapped_column (nullable = True )
20- description : Mapped [Optional [ str ] ] = mapped_column (Text , nullable = True )
21- summary : Mapped [Optional [ str ] ] = mapped_column (Text , nullable = True )
22- published_at : Mapped [Optional [ str ] ] = mapped_column (nullable = True )
23- state : Mapped [Optional [ str ] ] = mapped_column (nullable = True )
19+ cve_id : Mapped [str | None ] = mapped_column (nullable = True )
20+ description : Mapped [str | None ] = mapped_column (Text , nullable = True )
21+ summary : Mapped [str | None ] = mapped_column (Text , nullable = True )
22+ published_at : Mapped [str | None ] = mapped_column (nullable = True )
23+ state : Mapped [str | None ] = mapped_column (nullable = True )
2424
2525 def __repr__ (self ):
2626 return (
@@ -38,7 +38,7 @@ class GHSASummary(Base):
3838 high_severity_count : Mapped [int ]
3939 medium_severity_count : Mapped [int ]
4040 low_severity_count : Mapped [int ]
41- summary_notes : Mapped [Optional [ str ] ] = mapped_column (Text , nullable = True )
41+ summary_notes : Mapped [str | None ] = mapped_column (Text , nullable = True )
4242
4343 def __repr__ (self ):
4444 return (
You can’t perform that action at this time.
0 commit comments