-
Notifications
You must be signed in to change notification settings - Fork 765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pylance shows non-public exports in completion suggestions #4059
Comments
@binste, I'm unable to repro this issue using Pylance 2023.4.11. I confirmed that without your changes, Here's what I did:
Are you still seeing this? If so, can you help us repro it? |
Thank you @debonte for looking into it. I followed every step of your instructions and I still see Screen.Recording.2023-04-26.at.20.29.28.movHere's the location of the py.typed file I created in case that would be wrong: As you can see in the video above, I also restarted VS Code and executed the |
@binste, I'm still unable to repro this. I tried both Windows and Linux. Are you sure that you have the right virtual environment selected in VS Code? If so, can you please set |
Sorry that it took me a while to get back to this. Some context for the log: I opened the project again, updated all extensions, then reopened the window, verified that the interpreter is set to the correct one in the |
Can you post the contents of the following file, assuming you haven't changed it since you collected the log above?
|
Sure, the file is still the same as when I collected the log: __init__.py# flake8: noqa
__version__ = "4.3.0.dev0"
# The content of __all__ is automatically written by
# tools/update_init_file.py. Do not modify directly.
__all__ = [
"Aggregate",
"AggregateOp",
"AggregateTransform",
"AggregatedFieldDef",
"Align",
"AllSortString",
"Angle",
"AngleDatum",
"AngleValue",
"AnyMark",
"AnyMarkConfig",
"AreaConfig",
"ArgmaxDef",
"ArgminDef",
"AutoSizeParams",
"AutosizeType",
"Axis",
"AxisConfig",
"AxisOrient",
"AxisResolveMap",
"BarConfig",
"BaseTitleNoValueRefs",
"Baseline",
"Bin",
"BinExtent",
"BinParams",
"BinTransform",
"BindCheckbox",
"BindDirect",
"BindInput",
"BindRadioSelect",
"BindRange",
"Binding",
"Blend",
"BoxPlot",
"BoxPlotConfig",
"BoxPlotDef",
"BrushConfig",
"CalculateTransform",
"Categorical",
"Chart",
"Color",
"ColorDatum",
"ColorDef",
"ColorName",
"ColorScheme",
"ColorValue",
"Column",
"CompositeMark",
"CompositeMarkDef",
"CompositionConfig",
"ConcatChart",
"ConcatSpecGenericSpec",
"ConditionalAxisColor",
"ConditionalAxisLabelAlign",
"ConditionalAxisLabelBaseline",
"ConditionalAxisLabelFontStyle",
"ConditionalAxisLabelFontWeight",
"ConditionalAxisNumber",
"ConditionalAxisNumberArray",
"ConditionalAxisPropertyAlignnull",
"ConditionalAxisPropertyColornull",
"ConditionalAxisPropertyFontStylenull",
"ConditionalAxisPropertyFontWeightnull",
"ConditionalAxisPropertyTextBaselinenull",
"ConditionalAxisPropertynumberArraynull",
"ConditionalAxisPropertynumbernull",
"ConditionalAxisPropertystringnull",
"ConditionalAxisString",
"ConditionalMarkPropFieldOrDatumDef",
"ConditionalMarkPropFieldOrDatumDefTypeForShape",
"ConditionalParameterMarkPropFieldOrDatumDef",
"ConditionalParameterMarkPropFieldOrDatumDefTypeForShape",
"ConditionalParameterStringFieldDef",
"ConditionalParameterValueDefGradientstringnullExprRef",
"ConditionalParameterValueDefTextExprRef",
"ConditionalParameterValueDefnumber",
"ConditionalParameterValueDefnumberArrayExprRef",
"ConditionalParameterValueDefnumberExprRef",
"ConditionalParameterValueDefstringExprRef",
"ConditionalParameterValueDefstringnullExprRef",
"ConditionalPredicateMarkPropFieldOrDatumDef",
"ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape",
"ConditionalPredicateStringFieldDef",
"ConditionalPredicateValueDefAlignnullExprRef",
"ConditionalPredicateValueDefColornullExprRef",
"ConditionalPredicateValueDefFontStylenullExprRef",
"ConditionalPredicateValueDefFontWeightnullExprRef",
"ConditionalPredicateValueDefGradientstringnullExprRef",
"ConditionalPredicateValueDefTextBaselinenullExprRef",
"ConditionalPredicateValueDefTextExprRef",
"ConditionalPredicateValueDefnumber",
"ConditionalPredicateValueDefnumberArrayExprRef",
"ConditionalPredicateValueDefnumberArraynullExprRef",
"ConditionalPredicateValueDefnumberExprRef",
"ConditionalPredicateValueDefnumbernullExprRef",
"ConditionalPredicateValueDefstringExprRef",
"ConditionalPredicateValueDefstringnullExprRef",
"ConditionalStringFieldDef",
"ConditionalValueDefGradientstringnullExprRef",
"ConditionalValueDefTextExprRef",
"ConditionalValueDefnumber",
"ConditionalValueDefnumberArrayExprRef",
"ConditionalValueDefnumberExprRef",
"ConditionalValueDefstringExprRef",
"ConditionalValueDefstringnullExprRef",
"Config",
"CsvDataFormat",
"Cursor",
"Cyclical",
"Data",
"DataFormat",
"DataSource",
"Datasets",
"DateTime",
"DatumChannelMixin",
"DatumDef",
"Day",
"DensityTransform",
"DerivedStream",
"Description",
"DescriptionValue",
"Detail",
"Dict",
"DictInlineDataset",
"DictSelectionInit",
"DictSelectionInitInterval",
"Diverging",
"DomainUnionWith",
"DsvDataFormat",
"Element",
"Encoding",
"EncodingSortField",
"ErrorBand",
"ErrorBandConfig",
"ErrorBandDef",
"ErrorBar",
"ErrorBarConfig",
"ErrorBarDef",
"ErrorBarExtent",
"EventStream",
"EventType",
"Expr",
"ExprRef",
"Facet",
"FacetChart",
"FacetEncodingFieldDef",
"FacetFieldDef",
"FacetMapping",
"FacetSpec",
"FacetedEncoding",
"FacetedUnitSpec",
"Field",
"FieldChannelMixin",
"FieldDefWithoutScale",
"FieldEqualPredicate",
"FieldGTEPredicate",
"FieldGTPredicate",
"FieldLTEPredicate",
"FieldLTPredicate",
"FieldName",
"FieldOneOfPredicate",
"FieldOrDatumDefWithConditionDatumDefGradientstringnull",
"FieldOrDatumDefWithConditionDatumDefnumber",
"FieldOrDatumDefWithConditionDatumDefnumberArray",
"FieldOrDatumDefWithConditionDatumDefstringnull",
"FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull",
"FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull",
"FieldOrDatumDefWithConditionMarkPropFieldDefnumber",
"FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray",
"FieldOrDatumDefWithConditionStringDatumDefText",
"FieldOrDatumDefWithConditionStringFieldDefText",
"FieldOrDatumDefWithConditionStringFieldDefstring",
"FieldRange",
"FieldRangePredicate",
"FieldValidPredicate",
"Fill",
"FillDatum",
"FillOpacity",
"FillOpacityDatum",
"FillOpacityValue",
"FillValue",
"FilterTransform",
"Fit",
"FlattenTransform",
"FoldTransform",
"FontStyle",
"FontWeight",
"Generator",
"GenericUnitSpecEncodingAnyMark",
"GeoJsonFeature",
"GeoJsonFeatureCollection",
"Gradient",
"GradientStop",
"GraticuleGenerator",
"GraticuleParams",
"HConcatChart",
"HConcatSpecGenericSpec",
"Header",
"HeaderConfig",
"HexColor",
"Href",
"HrefValue",
"Impute",
"ImputeMethod",
"ImputeParams",
"ImputeSequence",
"ImputeTransform",
"InlineData",
"InlineDataset",
"Interpolate",
"IntervalSelectionConfig",
"IntervalSelectionConfigWithoutType",
"JoinAggregateFieldDef",
"JoinAggregateTransform",
"JsonDataFormat",
"Key",
"LabelOverlap",
"LatLongDef",
"LatLongFieldDef",
"Latitude",
"Latitude2",
"Latitude2Datum",
"Latitude2Value",
"LatitudeDatum",
"LayerChart",
"LayerRepeatMapping",
"LayerRepeatSpec",
"LayerSpec",
"LayoutAlign",
"Legend",
"LegendBinding",
"LegendConfig",
"LegendOrient",
"LegendResolveMap",
"LegendStreamBinding",
"LineConfig",
"LinearGradient",
"LocalMultiTimeUnit",
"LocalSingleTimeUnit",
"Locale",
"LoessTransform",
"LogicalAndPredicate",
"LogicalNotPredicate",
"LogicalOrPredicate",
"Longitude",
"Longitude2",
"Longitude2Datum",
"Longitude2Value",
"LongitudeDatum",
"LookupData",
"LookupSelection",
"LookupTransform",
"Mark",
"MarkConfig",
"MarkDef",
"MarkPropDefGradientstringnull",
"MarkPropDefnumber",
"MarkPropDefnumberArray",
"MarkPropDefstringnullTypeForShape",
"MarkType",
"MaxRowsError",
"MergedStream",
"Month",
"MultiTimeUnit",
"NamedData",
"NonArgAggregateOp",
"NonLayerRepeatSpec",
"NonNormalizedSpec",
"NumberLocale",
"NumericArrayMarkPropDef",
"NumericMarkPropDef",
"OffsetDef",
"Opacity",
"OpacityDatum",
"OpacityValue",
"Order",
"OrderFieldDef",
"OrderValue",
"OrderValueDef",
"Orient",
"Orientation",
"OverlayMarkDef",
"Padding",
"Parameter",
"ParameterExpression",
"ParameterExtent",
"ParameterName",
"ParameterPredicate",
"Parse",
"ParseValue",
"PivotTransform",
"PointSelectionConfig",
"PointSelectionConfigWithoutType",
"PolarDef",
"Position2Def",
"PositionDatumDef",
"PositionDatumDefBase",
"PositionDef",
"PositionFieldDef",
"PositionFieldDefBase",
"PositionValueDef",
"Predicate",
"PredicateComposition",
"PrimitiveValue",
"Projection",
"ProjectionConfig",
"ProjectionType",
"QuantileTransform",
"RadialGradient",
"Radius",
"Radius2",
"Radius2Datum",
"Radius2Value",
"RadiusDatum",
"RadiusValue",
"RangeConfig",
"RangeEnum",
"RangeRaw",
"RangeRawArray",
"RangeScheme",
"RectConfig",
"RegressionTransform",
"RelativeBandSize",
"RepeatChart",
"RepeatMapping",
"RepeatRef",
"RepeatSpec",
"Resolve",
"ResolveMode",
"Root",
"Row",
"RowColLayoutAlign",
"RowColboolean",
"RowColnumber",
"RowColumnEncodingFieldDef",
"SCHEMA_URL",
"SCHEMA_VERSION",
"SampleTransform",
"Scale",
"ScaleBinParams",
"ScaleBins",
"ScaleConfig",
"ScaleDatumDef",
"ScaleFieldDef",
"ScaleInterpolateEnum",
"ScaleInterpolateParams",
"ScaleResolveMap",
"ScaleType",
"SchemaBase",
"SchemeParams",
"SecondaryFieldDef",
"SelectionConfig",
"SelectionExpression",
"SelectionInit",
"SelectionInitInterval",
"SelectionInitIntervalMapping",
"SelectionInitMapping",
"SelectionParameter",
"SelectionPredicateComposition",
"SelectionResolution",
"SelectionType",
"SequenceGenerator",
"SequenceParams",
"SequentialMultiHue",
"SequentialSingleHue",
"Shape",
"ShapeDatum",
"ShapeDef",
"ShapeValue",
"SharedEncoding",
"SingleDefUnitChannel",
"SingleTimeUnit",
"Size",
"SizeDatum",
"SizeValue",
"Sort",
"SortArray",
"SortByChannel",
"SortByChannelDesc",
"SortByEncoding",
"SortField",
"SortOrder",
"Spec",
"SphereGenerator",
"StackOffset",
"StackTransform",
"StandardType",
"Step",
"StepFor",
"Stream",
"StringFieldDef",
"StringFieldDefWithCondition",
"StringValueDefWithCondition",
"Stroke",
"StrokeCap",
"StrokeDash",
"StrokeDashDatum",
"StrokeDashValue",
"StrokeDatum",
"StrokeJoin",
"StrokeOpacity",
"StrokeOpacityDatum",
"StrokeOpacityValue",
"StrokeValue",
"StrokeWidth",
"StrokeWidthDatum",
"StrokeWidthValue",
"StyleConfigIndex",
"SymbolShape",
"TOPLEVEL_ONLY_KEYS",
"Text",
"TextBaseline",
"TextDatum",
"TextDef",
"TextDirection",
"TextValue",
"Theta",
"Theta2",
"Theta2Datum",
"Theta2Value",
"ThetaDatum",
"ThetaValue",
"TickConfig",
"TickCount",
"TimeInterval",
"TimeIntervalStep",
"TimeLocale",
"TimeUnit",
"TimeUnitParams",
"TimeUnitTransform",
"Title",
"TitleAnchor",
"TitleConfig",
"TitleFrame",
"TitleOrient",
"TitleParams",
"Tooltip",
"TooltipContent",
"TooltipValue",
"TopLevelConcatSpec",
"TopLevelFacetSpec",
"TopLevelHConcatSpec",
"TopLevelLayerSpec",
"TopLevelMixin",
"TopLevelParameter",
"TopLevelRepeatSpec",
"TopLevelSelectionParameter",
"TopLevelSpec",
"TopLevelUnitSpec",
"TopLevelVConcatSpec",
"TopoDataFormat",
"Transform",
"Type",
"TypeForShape",
"TypedFieldDef",
"URI",
"Undefined",
"UnitSpec",
"UnitSpecWithFrame",
"Url",
"UrlData",
"UrlValue",
"UtcMultiTimeUnit",
"UtcSingleTimeUnit",
"VConcatChart",
"VConcatSpecGenericSpec",
"VEGAEMBED_VERSION",
"VEGALITE_VERSION",
"VEGA_VERSION",
"ValueChannelMixin",
"ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull",
"ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull",
"ValueDefWithConditionMarkPropFieldOrDatumDefnumber",
"ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray",
"ValueDefWithConditionMarkPropFieldOrDatumDefstringnull",
"ValueDefWithConditionStringFieldDefText",
"ValueDefnumber",
"ValueDefnumberwidthheightExprRef",
"VariableParameter",
"Vector10string",
"Vector12string",
"Vector2DateTime",
"Vector2Vector2number",
"Vector2boolean",
"Vector2number",
"Vector2string",
"Vector3number",
"Vector7string",
"VegaLite",
"VegaLiteSchema",
"ViewBackground",
"ViewConfig",
"WindowEventType",
"WindowFieldDef",
"WindowOnlyOp",
"WindowTransform",
"X",
"X2",
"X2Datum",
"X2Value",
"XDatum",
"XError",
"XError2",
"XError2Value",
"XErrorValue",
"XOffset",
"XOffsetDatum",
"XOffsetValue",
"XValue",
"Y",
"Y2",
"Y2Datum",
"Y2Value",
"YDatum",
"YError",
"YError2",
"YError2Value",
"YErrorValue",
"YOffset",
"YOffsetDatum",
"YOffsetValue",
"YValue",
"api",
"binding",
"binding_checkbox",
"binding_radio",
"binding_range",
"binding_select",
"channels",
"check_fields_and_encodings",
"concat",
"condition",
"core",
"curry",
"data",
"data_transformers",
"datasets",
"datum",
"default_data_transformer",
"display",
"expr",
"graticule",
"hconcat",
"layer",
"limit_rows",
"load_ipython_extension",
"load_schema",
"mixins",
"overload",
"param",
"parse_shorthand",
"pipe",
"renderers",
"repeat",
"sample",
"schema",
"selection_interval",
"selection_point",
"sequence",
"sphere",
"theme",
"themes",
"to_csv",
"to_json",
"to_values",
"topo_feature",
"utils",
"v5",
"value",
"vconcat",
"vegalite",
"with_property_setters",
]
def __dir__():
return __all__
from .vegalite import (
Aggregate,
AggregateOp,
AggregateTransform,
AggregatedFieldDef,
Align,
AllSortString,
Angle,
AngleDatum,
AngleValue,
AnyMark,
AnyMarkConfig,
AreaConfig,
ArgmaxDef,
ArgminDef,
AutoSizeParams,
AutosizeType,
Axis,
AxisConfig,
AxisOrient,
AxisResolveMap,
BarConfig,
BaseTitleNoValueRefs,
Baseline,
Bin,
BinExtent,
BinParams,
BinTransform,
BindCheckbox,
BindDirect,
BindInput,
BindRadioSelect,
BindRange,
Binding,
Blend,
BoxPlot,
BoxPlotConfig,
BoxPlotDef,
BrushConfig,
CalculateTransform,
Categorical,
Chart,
Color,
ColorDatum,
ColorDef,
ColorName,
ColorScheme,
ColorValue,
Column,
CompositeMark,
CompositeMarkDef,
CompositionConfig,
ConcatChart,
ConcatSpecGenericSpec,
ConditionalAxisColor,
ConditionalAxisLabelAlign,
ConditionalAxisLabelBaseline,
ConditionalAxisLabelFontStyle,
ConditionalAxisLabelFontWeight,
ConditionalAxisNumber,
ConditionalAxisNumberArray,
ConditionalAxisPropertyAlignnull,
ConditionalAxisPropertyColornull,
ConditionalAxisPropertyFontStylenull,
ConditionalAxisPropertyFontWeightnull,
ConditionalAxisPropertyTextBaselinenull,
ConditionalAxisPropertynumberArraynull,
ConditionalAxisPropertynumbernull,
ConditionalAxisPropertystringnull,
ConditionalAxisString,
ConditionalMarkPropFieldOrDatumDef,
ConditionalMarkPropFieldOrDatumDefTypeForShape,
ConditionalParameterMarkPropFieldOrDatumDef,
ConditionalParameterMarkPropFieldOrDatumDefTypeForShape,
ConditionalParameterStringFieldDef,
ConditionalParameterValueDefGradientstringnullExprRef,
ConditionalParameterValueDefTextExprRef,
ConditionalParameterValueDefnumber,
ConditionalParameterValueDefnumberArrayExprRef,
ConditionalParameterValueDefnumberExprRef,
ConditionalParameterValueDefstringExprRef,
ConditionalParameterValueDefstringnullExprRef,
ConditionalPredicateMarkPropFieldOrDatumDef,
ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape,
ConditionalPredicateStringFieldDef,
ConditionalPredicateValueDefAlignnullExprRef,
ConditionalPredicateValueDefColornullExprRef,
ConditionalPredicateValueDefFontStylenullExprRef,
ConditionalPredicateValueDefFontWeightnullExprRef,
ConditionalPredicateValueDefGradientstringnullExprRef,
ConditionalPredicateValueDefTextBaselinenullExprRef,
ConditionalPredicateValueDefTextExprRef,
ConditionalPredicateValueDefnumber,
ConditionalPredicateValueDefnumberArrayExprRef,
ConditionalPredicateValueDefnumberArraynullExprRef,
ConditionalPredicateValueDefnumberExprRef,
ConditionalPredicateValueDefnumbernullExprRef,
ConditionalPredicateValueDefstringExprRef,
ConditionalPredicateValueDefstringnullExprRef,
ConditionalStringFieldDef,
ConditionalValueDefGradientstringnullExprRef,
ConditionalValueDefTextExprRef,
ConditionalValueDefnumber,
ConditionalValueDefnumberArrayExprRef,
ConditionalValueDefnumberExprRef,
ConditionalValueDefstringExprRef,
ConditionalValueDefstringnullExprRef,
Config,
CsvDataFormat,
Cursor,
Cyclical,
Data,
DataFormat,
DataSource,
Datasets,
DateTime,
DatumChannelMixin,
DatumDef,
Day,
DensityTransform,
DerivedStream,
Description,
DescriptionValue,
Detail,
Dict,
DictInlineDataset,
DictSelectionInit,
DictSelectionInitInterval,
Diverging,
DomainUnionWith,
DsvDataFormat,
Element,
Encoding,
EncodingSortField,
ErrorBand,
ErrorBandConfig,
ErrorBandDef,
ErrorBar,
ErrorBarConfig,
ErrorBarDef,
ErrorBarExtent,
EventStream,
EventType,
Expr,
ExprRef,
Facet,
FacetChart,
FacetEncodingFieldDef,
FacetFieldDef,
FacetMapping,
FacetSpec,
FacetedEncoding,
FacetedUnitSpec,
Field,
FieldChannelMixin,
FieldDefWithoutScale,
FieldEqualPredicate,
FieldGTEPredicate,
FieldGTPredicate,
FieldLTEPredicate,
FieldLTPredicate,
FieldName,
FieldOneOfPredicate,
FieldOrDatumDefWithConditionDatumDefGradientstringnull,
FieldOrDatumDefWithConditionDatumDefnumber,
FieldOrDatumDefWithConditionDatumDefnumberArray,
FieldOrDatumDefWithConditionDatumDefstringnull,
FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull,
FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull,
FieldOrDatumDefWithConditionMarkPropFieldDefnumber,
FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray,
FieldOrDatumDefWithConditionStringDatumDefText,
FieldOrDatumDefWithConditionStringFieldDefText,
FieldOrDatumDefWithConditionStringFieldDefstring,
FieldRange,
FieldRangePredicate,
FieldValidPredicate,
Fill,
FillDatum,
FillOpacity,
FillOpacityDatum,
FillOpacityValue,
FillValue,
FilterTransform,
Fit,
FlattenTransform,
FoldTransform,
FontStyle,
FontWeight,
Generator,
GenericUnitSpecEncodingAnyMark,
GeoJsonFeature,
GeoJsonFeatureCollection,
Gradient,
GradientStop,
GraticuleGenerator,
GraticuleParams,
HConcatChart,
HConcatSpecGenericSpec,
Header,
HeaderConfig,
HexColor,
Href,
HrefValue,
Impute,
ImputeMethod,
ImputeParams,
ImputeSequence,
ImputeTransform,
InlineData,
InlineDataset,
Interpolate,
IntervalSelectionConfig,
IntervalSelectionConfigWithoutType,
JoinAggregateFieldDef,
JoinAggregateTransform,
JsonDataFormat,
Key,
LabelOverlap,
LatLongDef,
LatLongFieldDef,
Latitude,
Latitude2,
Latitude2Datum,
Latitude2Value,
LatitudeDatum,
LayerChart,
LayerRepeatMapping,
LayerRepeatSpec,
LayerSpec,
LayoutAlign,
Legend,
LegendBinding,
LegendConfig,
LegendOrient,
LegendResolveMap,
LegendStreamBinding,
LineConfig,
LinearGradient,
LocalMultiTimeUnit,
LocalSingleTimeUnit,
Locale,
LoessTransform,
LogicalAndPredicate,
LogicalNotPredicate,
LogicalOrPredicate,
Longitude,
Longitude2,
Longitude2Datum,
Longitude2Value,
LongitudeDatum,
LookupData,
LookupSelection,
LookupTransform,
Mark,
MarkConfig,
MarkDef,
MarkPropDefGradientstringnull,
MarkPropDefnumber,
MarkPropDefnumberArray,
MarkPropDefstringnullTypeForShape,
MarkType,
MaxRowsError,
MergedStream,
Month,
MultiTimeUnit,
NamedData,
NonArgAggregateOp,
NonLayerRepeatSpec,
NonNormalizedSpec,
NumberLocale,
NumericArrayMarkPropDef,
NumericMarkPropDef,
OffsetDef,
Opacity,
OpacityDatum,
OpacityValue,
Order,
OrderFieldDef,
OrderValue,
OrderValueDef,
Orient,
Orientation,
OverlayMarkDef,
Padding,
Parameter,
ParameterExpression,
ParameterExtent,
ParameterName,
ParameterPredicate,
Parse,
ParseValue,
PivotTransform,
PointSelectionConfig,
PointSelectionConfigWithoutType,
PolarDef,
Position2Def,
PositionDatumDef,
PositionDatumDefBase,
PositionDef,
PositionFieldDef,
PositionFieldDefBase,
PositionValueDef,
Predicate,
PredicateComposition,
PrimitiveValue,
Projection,
ProjectionConfig,
ProjectionType,
QuantileTransform,
RadialGradient,
Radius,
Radius2,
Radius2Datum,
Radius2Value,
RadiusDatum,
RadiusValue,
RangeConfig,
RangeEnum,
RangeRaw,
RangeRawArray,
RangeScheme,
RectConfig,
RegressionTransform,
RelativeBandSize,
RepeatChart,
RepeatMapping,
RepeatRef,
RepeatSpec,
Resolve,
ResolveMode,
Root,
Row,
RowColLayoutAlign,
RowColboolean,
RowColnumber,
RowColumnEncodingFieldDef,
SCHEMA_URL,
SCHEMA_VERSION,
SampleTransform,
Scale,
ScaleBinParams,
ScaleBins,
ScaleConfig,
ScaleDatumDef,
ScaleFieldDef,
ScaleInterpolateEnum,
ScaleInterpolateParams,
ScaleResolveMap,
ScaleType,
SchemaBase,
SchemeParams,
SecondaryFieldDef,
SelectionConfig,
SelectionExpression,
SelectionInit,
SelectionInitInterval,
SelectionInitIntervalMapping,
SelectionInitMapping,
SelectionParameter,
SelectionPredicateComposition,
SelectionResolution,
SelectionType,
SequenceGenerator,
SequenceParams,
SequentialMultiHue,
SequentialSingleHue,
Shape,
ShapeDatum,
ShapeDef,
ShapeValue,
SharedEncoding,
SingleDefUnitChannel,
SingleTimeUnit,
Size,
SizeDatum,
SizeValue,
Sort,
SortArray,
SortByChannel,
SortByChannelDesc,
SortByEncoding,
SortField,
SortOrder,
Spec,
SphereGenerator,
StackOffset,
StackTransform,
StandardType,
Step,
StepFor,
Stream,
StringFieldDef,
StringFieldDefWithCondition,
StringValueDefWithCondition,
Stroke,
StrokeCap,
StrokeDash,
StrokeDashDatum,
StrokeDashValue,
StrokeDatum,
StrokeJoin,
StrokeOpacity,
StrokeOpacityDatum,
StrokeOpacityValue,
StrokeValue,
StrokeWidth,
StrokeWidthDatum,
StrokeWidthValue,
StyleConfigIndex,
SymbolShape,
TOPLEVEL_ONLY_KEYS,
Text,
TextBaseline,
TextDatum,
TextDef,
TextDirection,
TextValue,
Theta,
Theta2,
Theta2Datum,
Theta2Value,
ThetaDatum,
ThetaValue,
TickConfig,
TickCount,
TimeInterval,
TimeIntervalStep,
TimeLocale,
TimeUnit,
TimeUnitParams,
TimeUnitTransform,
Title,
TitleAnchor,
TitleConfig,
TitleFrame,
TitleOrient,
TitleParams,
Tooltip,
TooltipContent,
TooltipValue,
TopLevelConcatSpec,
TopLevelFacetSpec,
TopLevelHConcatSpec,
TopLevelLayerSpec,
TopLevelMixin,
TopLevelParameter,
TopLevelRepeatSpec,
TopLevelSelectionParameter,
TopLevelSpec,
TopLevelUnitSpec,
TopLevelVConcatSpec,
TopoDataFormat,
Transform,
Type,
TypeForShape,
TypeVar,
TypedFieldDef,
URI,
Undefined,
UnitSpec,
UnitSpecWithFrame,
Url,
UrlData,
UrlValue,
UtcMultiTimeUnit,
UtcSingleTimeUnit,
VConcatChart,
VConcatSpecGenericSpec,
VEGAEMBED_VERSION,
VEGALITE_VERSION,
VEGA_VERSION,
ValueChannelMixin,
ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull,
ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull,
ValueDefWithConditionMarkPropFieldOrDatumDefnumber,
ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray,
ValueDefWithConditionMarkPropFieldOrDatumDefstringnull,
ValueDefWithConditionStringFieldDefText,
ValueDefnumber,
ValueDefnumberwidthheightExprRef,
VariableParameter,
Vector10string,
Vector12string,
Vector2DateTime,
Vector2Vector2number,
Vector2boolean,
Vector2number,
Vector2string,
Vector3number,
Vector7string,
VegaLite,
VegaLiteSchema,
ViewBackground,
ViewConfig,
WindowEventType,
WindowFieldDef,
WindowOnlyOp,
WindowTransform,
X,
X2,
X2Datum,
X2Value,
XDatum,
XError,
XError2,
XError2Value,
XErrorValue,
XOffset,
XOffsetDatum,
XOffsetValue,
XValue,
Y,
Y2,
Y2Datum,
Y2Value,
YDatum,
YError,
YError2,
YError2Value,
YErrorValue,
YOffset,
YOffsetDatum,
YOffsetValue,
YValue,
__builtins__,
__cached__,
__doc__,
__file__,
__loader__,
__name__,
__package__,
__path__,
__spec__,
api,
binding,
binding_checkbox,
binding_radio,
binding_range,
binding_select,
channels,
check_fields_and_encodings,
concat,
condition,
core,
curry,
data,
data_transformers,
datum,
default_data_transformer,
display,
expr,
graticule,
hashlib,
hconcat,
io,
itertools,
json,
jsonschema,
layer,
limit_rows,
list_datasets,
load_dataset,
load_schema,
mixins,
overload,
param,
parse_shorthand,
pd,
pipe,
pkgutil,
renderers,
repeat,
sample,
schema,
selection,
selection_interval,
selection_multi,
selection_point,
selection_single,
sequence,
sphere,
theme,
themes,
to_csv,
to_json,
to_values,
topo_feature,
utils,
v5,
value,
vconcat,
warnings,
with_property_setters,
)
def load_ipython_extension(ipython):
from ._magics import vegalite
ipython.register_magic_function(vegalite, "cell") |
@erictraut, this issue is related to interim files. Can you give me the executive summary of what their purpose is? Interim files always have |
The concept of an "interim file" (initially misspelled as "intrim file") was introduced via a sync with pylance on Jan 4, 2023. I don't know why it was added. There are no comments in the program.ts module that explain the concept. Since the change came in as part of a sync from pylance, I can't tell who initially wrote this code. The intent behind the change is obscured because it's combined with a bunch of other changes, and there are no detailed commit comments. I'm guessing that Heejae made this change based on the coding style and the wording in the comments. |
I believe interim files were added for the pytest support. They were used to allow declarations for 3rd party libraries to be referenced when finding fixtures. |
Looks like it evolved out of the "shadowed file" concept in https://github.com/microsoft/pyrx/pull/3016/files#diff-c31e28784be62cd19c158d342a0ad07bd73858853a14f1f78b2931045cf1e8f5. Shadowed files also always had |
@erictraut, this issue is related to a Teams discussion that you recently had with HeeJae. As he mentions there, we have "features that open library files through some implicit relation rather than explicit import statements." The "interim file" mechanism is used to add these files to the program. But currently it doesn't know what values the new In this particular issue, the feature that causes HeeJae's proposal in the Teams chat above was to modify the return value of Does this seem like a reasonable approach? |
I'd need to review a bunch of code and page this all back into my head to answer your question. I probably won't have time to do that in the next week, so don't wait for me. This sounds like a reasonable approach — worth exploring. |
Repro steps:
Expected: The only suggestions starting with lowercase Actual:
|
While trying to make Altair a typed library, we were trying to hide deprecated functions from the code completions on the top-level package. The approach was discussed here #3709 (comment). However, Pylance still shows all symbols in the code completion even though some are no longer public exports, see vega/altair#2927 for the proposed code changes, expected and actual behaviour as well as screenshots.
In case these two threads do not provide enough context or are too complex to go through let me know and I can try to make a more minimal example.
Environment data
The text was updated successfully, but these errors were encountered: