mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 01:38:40 +08:00
inifile: add missing attributes (#10273)
And make many attributes read-only. The primary entry point to this module in `IniFile` (or its subclass `AppIniFile`). Since the config file is read (from `filename`) and parsed (using the `dialect`) in the `IniFile` constructor, modifying attributes like `IniFile.filename` or `IniFile.dialect` after construction is likely to cause problems.
This commit is contained in:
@@ -6,3 +6,18 @@ inifile.iter_from_file
|
||||
inifile.iteritems
|
||||
inifile.reraise
|
||||
inifile.string_types
|
||||
|
||||
# Attributes that should be treated as read-only and thus are annotated
|
||||
# with @property
|
||||
inifile.Dialect.ns_sep
|
||||
inifile.Dialect.kv_sep
|
||||
inifile.Dialect.quotes
|
||||
inifile.Dialect.true
|
||||
inifile.Dialect.false
|
||||
inifile.Dialect.comments
|
||||
inifile.Dialect.allow_escaping
|
||||
inifile.Dialect.linesep
|
||||
inifile.IniData.dialect
|
||||
inifile.IniFile.filename
|
||||
inifile.IniFile.encoding
|
||||
inifile.IniFile.is_new
|
||||
|
||||
Reference in New Issue
Block a user