PY-42200 Annotate PyWithItem.getExpression as @NotNull and update usages

Parser was changed so that it no longer produces empty PyWithItem elements
after trailing commas.

GitOrigin-RevId: f730e68644f3444269d65d157b666267755e0d2d
This commit is contained in:
Mikhail Golubev
2022-04-29 15:51:04 +03:00
committed by intellij-monorepo-bot
parent 97b22aaa13
commit ea039cfc94
5 changed files with 14 additions and 27 deletions

View File

@@ -1,13 +1,14 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.psi;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public interface PyWithItem extends PyElement {
PyWithItem[] EMPTY_ARRAY = new PyWithItem[0];
@Nullable
@NotNull
PyExpression getExpression();
@Nullable