Fix configtypes mistakes

This commit is contained in:
Florian Bruhin 2017-06-13 11:31:43 +02:00
parent 8de0445661
commit 3009e5eebe
2 changed files with 5 additions and 5 deletions

View File

@ -507,11 +507,11 @@ content.custom_headers:
type: type:
name: Dict name: Dict
keytype: keytype:
- name: String name: String
- encoding: ascii encoding: ascii
valtype: valtype:
- name: String name: String
- encoding: ascii encoding: ascii
none_ok: true none_ok: true
desc: Set custom headers for qutebrowser HTTP requests. desc: Set custom headers for qutebrowser HTTP requests.

View File

@ -1122,7 +1122,7 @@ class Padding(Dict):
def __init__(self, none_ok=False, valid_values=None): def __init__(self, none_ok=False, valid_values=None):
super().__init__(keytype=String(), valtype=Int(minval=0), super().__init__(keytype=String(), valtype=Int(minval=0),
fixed_keys=['top', 'bottom', 'left', 'right'], fixed_keys=['top', 'bottom', 'left', 'right'],
none_ok=none_ok, length=4) none_ok=none_ok)
# FIXME:conf # FIXME:conf
assert valid_values is None, valid_values assert valid_values is None, valid_values