Skip to content

SourceKind

Inspect a snapshot's kind to distinguish Python files from captured notebook source. Import SourceKind from linescope to compare categories.

enum linescope.enums.SourceKind[source]

Distinguish project files from captured notebook source.

Both kinds preserve the full source snapshot for reporting.

  • PYTHON
  • NOTEBOOK
Attributes

PYTHON : SourceKind

Identify a snapshotted project Python file.

NOTEBOOK : SourceKind

Identify captured notebook or cell source.