Skip to content

Commit 8412248

Browse files
python
1 parent 8293adc commit 8412248

File tree

1 file changed

+10
-1
lines changed
  • packages/common/src/scopeSupportFacets

1 file changed

+10
-1
lines changed

packages/common/src/scopeSupportFacets/python.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ export const pythonScopeSupport: LanguageScopeSupportFacetMap = {
247247
// Type. Python have some types, but not these.
248248
"type.alias": notApplicable,
249249
"type.cast": notApplicable,
250-
"type.enum": notApplicable,
251250
"type.foreach": notApplicable,
252251
"type.interface": notApplicable,
253252
"type.field.interface": notApplicable,
@@ -256,6 +255,16 @@ export const pythonScopeSupport: LanguageScopeSupportFacetMap = {
256255
"type.resource": notApplicable,
257256
"value.typeAlias": notApplicable,
258257

258+
// Enum. The way python does enums is via class inheritance, and not as a separate keyword/syntax.
259+
"name.enum": notApplicable,
260+
"name.field.enum": notApplicable,
261+
"name.iteration.enum": notApplicable,
262+
"value.field.enum": notApplicable,
263+
"value.iteration.enum": notApplicable,
264+
"type.enum": notApplicable,
265+
"interior.enum": notApplicable,
266+
"statement.enum": notApplicable,
267+
259268
// Notebook cell
260269
notebookCell: notApplicable,
261270
"interior.cell": notApplicable,

0 commit comments

Comments
 (0)