[all-commits] [llvm/llvm-project] fd45dc: fix(mlir/**.py): fix comparison to None (#94019)

Eisuke Kawashima via All-commits all-commits at lists.llvm.org
Fri Jun 7 03:03:29 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd45dcca26d6031fcbaa907d8d6c0d9755b36699
      https://github.com/llvm/llvm-project/commit/fd45dcca26d6031fcbaa907d8d6c0d9755b36699
  Author: Eisuke Kawashima <e.kawaschima+github at gmail.com>
  Date:   2024-06-07 (Fri, 07 Jun 2024)

  Changed paths:
    M mlir/test/python/ir/affine_expr.py
    M mlir/test/python/ir/attributes.py
    M mlir/test/python/ir/builtin_types.py

  Log Message:
  -----------
  fix(mlir/**.py): fix comparison to None (#94019)

from PEP8
(https://peps.python.org/pep-0008/#programming-recommendations):

> Comparisons to singletons like None should always be done with is or
is not, never the equality operators.

Co-authored-by: Eisuke Kawashima <e-kwsm at users.noreply.github.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list