@@ -20,9 +20,8 @@ cdef unsigned int _TYPE_PTR
2020cdef cython.uint _ONE_SECOND
2121cdef unsigned int _MIN_SCHEDULED_RECORD_EXPIRATION
2222
23- @ cython.locals (
24- record_cache = dict ,
25- )
23+
24+ @ cython.locals (record_cache = dict )
2625cdef _remove_key(cython.dict cache, object key, DNSRecord record)
2726
2827
@@ -37,36 +36,23 @@ cdef class DNSCache:
3736
3837 cpdef void async_remove_records(self , object entries)
3938
40- @ cython.locals (
41- store = cython.dict,
42- )
39+ @ cython.locals (store = cython.dict)
4340 cpdef DNSRecord async_get_unique(self , DNSRecord entry)
4441
45- @ cython.locals (
46- record = DNSRecord,
47- )
42+ @ cython.locals (record = DNSRecord)
4843 cpdef list async_expire(self , double now)
4944
50- @ cython.locals (
51- records = cython.dict,
52- record = DNSRecord,
53- )
45+ @ cython.locals (records = cython.dict, record = DNSRecord)
5446 cpdef list async_all_by_details(self , str name, unsigned int type_, unsigned int class_)
5547
5648 cpdef list async_entries_with_name(self , str name)
5749
5850 cpdef list async_entries_with_server(self , str name)
5951
60- @ cython.locals (
61- cached_entry = DNSRecord,
62- records = dict
63- )
52+ @ cython.locals (cached_entry = DNSRecord, records = dict )
6453 cpdef DNSRecord get_by_details(self , str name, unsigned int type_, unsigned int class_)
6554
66- @ cython.locals (
67- records = cython.dict,
68- entry = DNSRecord,
69- )
55+ @ cython.locals (records = cython.dict, entry = DNSRecord)
7056 cpdef cython.list get_all_by_details(self , str name, unsigned int type_, unsigned int class_)
7157
7258 @ cython.locals (
@@ -76,31 +62,19 @@ cdef class DNSCache:
7662 )
7763 cdef bint _async_add(self , DNSRecord record)
7864
79- @ cython.locals (
80- service_record = DNSService
81- )
65+ @ cython.locals (service_record = DNSService)
8266 cdef void _async_remove(self , DNSRecord record)
8367
84- @ cython.locals (
85- record = DNSRecord,
86- created_double = double ,
87- )
68+ @ cython.locals (record = DNSRecord, created_double = double )
8869 cpdef void async_mark_unique_records_older_than_1s_to_expire(self , cython.set unique_types, object answers, double now)
8970
90- @ cython.locals (
91- entries = dict
92- )
71+ @ cython.locals (entries = dict )
9372 cpdef list entries_with_name(self , str name)
9473
95- @ cython.locals (
96- entries = dict
97- )
74+ @ cython.locals (entries = dict )
9875 cpdef list entries_with_server(self , str server)
9976
100- @ cython.locals (
101- record = DNSRecord,
102- now = double
103- )
77+ @ cython.locals (record = DNSRecord, now = double )
10478 cpdef current_entry_with_name_and_alias(self , str name, str alias)
10579
10680 cpdef void _async_set_created_ttl(
0 commit comments