aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorDaniel Latypov <dlatypov@google.com>2023-03-16 15:06:36 -0700
committerShuah Khan <skhan@linuxfoundation.org>2023-03-17 12:28:18 -0600
commit695e26030858b27648ca107b77095fed53377b4b (patch)
tree91b9013eb212a106fff413dd3ae22e88ab3a796c /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parent2c6a96dad5797e57b4cf04101d6c8d5c7a571603 (diff)
kunit: tool: add subscripts for type annotations where appropriate
E.g. for subprocess.Popen, it can be opened in `text=True` mode where it returns strings, or `text=False` where it returns bytes. To differentiate, you can annotate types as `Popen[str]` or `Popen[bytes]`. This patch should add subscripts in all the places we were missing them. Reported-by: Johannes Berg <johannes.berg@intel.com> Link: https://lore.kernel.org/linux-kselftest/20230315105055.9b2be0153625.I7a2cb99b95dff216c0feed4604255275e0b156a7@changeid/ Signed-off-by: Daniel Latypov <dlatypov@google.com> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions