vsavchenko marked an inline comment as done.
vsavchenko added inline comments.


================
Comment at: clang/utils/analyzer/ProjectMap.py:14
 
+class DownloadType(str, Enum):
+    GIT = "git"
----------------
xazax.hun wrote:
> I was wondering what is the point of inheriting from `str`. I am not 
> well-versed in Python so it is more of a curiosity.
It helps with direct assignments from strings, cross-comparisons between `Enum` 
values and strings, and most importantly - serialization.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81564/new/

https://reviews.llvm.org/D81564



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to