[Mlir-commits] [mlir] A few tweaks to the MLIR .pyi files (PR #110488)

Stella Laurenzo llvmlistbot at llvm.org
Mon Sep 30 12:40:51 PDT 2024


================
@@ -26,15 +25,15 @@ class AttributeType(Type):
   def isinstance(type: Type) -> bool: ...
 
   @staticmethod
-  def get(context: Optional[Context] = None) -> AttributeType: ...
+  def get(context: Context | None = None) -> AttributeType: ...
----------------
stellaraccident wrote:

I would also support type stubs only being supported for active versions so long as it doesn't impede use of the library on older versions. I think it is completely reasonable for development efficiency features to not target discontinued versions.

https://github.com/llvm/llvm-project/pull/110488


More information about the Mlir-commits mailing list