From 5384b61d95c82dcde6e924ce40f037f7f659d70f Mon Sep 17 00:00:00 2001 From: Jimmy Cuadra Date: Fri, 14 Jun 2019 17:35:39 -0700 Subject: [PATCH] Fix style issues brought up during code review. Signed-off-by: Jimmy Cuadra --- changelogs/client_server/newsfragments/2132.clarification | 2 +- event-schemas/schema/m.key.verification.start | 4 +++- scripts/templating/matrix_templates/units.py | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/changelogs/client_server/newsfragments/2132.clarification b/changelogs/client_server/newsfragments/2132.clarification index 53063400f..1c4583405 100644 --- a/changelogs/client_server/newsfragments/2132.clarification +++ b/changelogs/client_server/newsfragments/2132.clarification @@ -1 +1 @@ -Clarify the distinction between *m.key.verification.start* and its *m.sas.v1* variant. +Clarify the distinction between ``m`.key.verification.start` and its `m`.`sas.v1` variant. diff --git a/event-schemas/schema/m.key.verification.start b/event-schemas/schema/m.key.verification.start index 99b4998ed..28926f4f0 100644 --- a/event-schemas/schema/m.key.verification.start +++ b/event-schemas/schema/m.key.verification.start @@ -3,7 +3,9 @@ allOf: - $ref: core-event-schema/event.yaml description: |- - Begins a key verification process. Typically sent as a `to-device`_ event. The ``method`` field determines the type of verification. The fields in the event will differ depending on the ``method``. This definition includes fields that are in common among all variants. + Begins a key verification process. Typically sent as a `to-device`_ event. The ``method`` + field determines the type of verification. The fields in the event will differ depending + on the ``method``. This definition includes fields that are in common among all variants. properties: content: properties: diff --git a/scripts/templating/matrix_templates/units.py b/scripts/templating/matrix_templates/units.py index 8538de2d0..04e6f8a9c 100644 --- a/scripts/templating/matrix_templates/units.py +++ b/scripts/templating/matrix_templates/units.py @@ -910,7 +910,6 @@ class MatrixUnits(Units): if methods: schema["type_with_msgtype"] = schema["type"] + " (" + methods[0] + ")" - # Assign state key info if it has some if schema["typeof"] == "State Event": skey_desc = Units.prop(