omlish 0.0.0.dev343__py3-none-any.whl → 0.0.0.dev344__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. omlish/__about__.py +2 -2
  2. omlish/algorithm/distribute.py +1 -1
  3. omlish/algorithm/toposort.py +1 -1
  4. omlish/argparse/cli.py +1 -1
  5. omlish/asyncs/asyncio/channels.py +1 -1
  6. omlish/asyncs/asyncio/sockets.py +1 -1
  7. omlish/asyncs/asyncio/streams.py +1 -1
  8. omlish/asyncs/asyncio/subprocesses.py +1 -1
  9. omlish/asyncs/asyncio/timeouts.py +1 -1
  10. omlish/asyncs/asyncio/utils.py +1 -1
  11. omlish/asyncs/bluelet/api.py +1 -1
  12. omlish/asyncs/bluelet/core.py +1 -1
  13. omlish/asyncs/bluelet/events.py +1 -1
  14. omlish/asyncs/bluelet/files.py +1 -1
  15. omlish/asyncs/bluelet/runner.py +1 -1
  16. omlish/asyncs/bluelet/sockets.py +1 -1
  17. omlish/asyncs/buffers.py +1 -1
  18. omlish/asyncs/ioproxy/io.py +1 -1
  19. omlish/asyncs/ioproxy/proxier.py +1 -1
  20. omlish/asyncs/ioproxy/proxy.py +1 -1
  21. omlish/asyncs/ioproxy/typing.py +1 -1
  22. omlish/bootstrap/diag.py +1 -1
  23. omlish/bootstrap/main.py +1 -1
  24. omlish/bootstrap/sys.py +1 -1
  25. omlish/collections/abc.py +1 -1
  26. omlish/collections/ordered.py +6 -0
  27. omlish/collections/unmodifiable.py +9 -0
  28. omlish/configs/formats.py +1 -1
  29. omlish/configs/nginx.py +1 -1
  30. omlish/configs/processing/flattening.py +2 -2
  31. omlish/configs/processing/inheritance.py +1 -1
  32. omlish/configs/processing/matching.py +1 -1
  33. omlish/configs/processing/merging.py +1 -1
  34. omlish/configs/processing/names.py +1 -1
  35. omlish/configs/processing/rewriting.py +1 -1
  36. omlish/configs/processing/strings.py +1 -1
  37. omlish/configs/shadow.py +1 -1
  38. omlish/configs/types.py +1 -1
  39. omlish/datetimes.py +1 -1
  40. omlish/diag/lslocks.py +1 -1
  41. omlish/diag/lsof.py +1 -1
  42. omlish/diag/ps.py +1 -1
  43. omlish/docker/detect.py +1 -1
  44. omlish/docker/ns1.py +1 -1
  45. omlish/docker/ports.py +1 -1
  46. omlish/formats/dotenv.py +1 -1
  47. omlish/formats/edn/parsing.py +1 -1
  48. omlish/formats/ini/sections.py +1 -1
  49. omlish/formats/props.py +1 -1
  50. omlish/formats/toml/parser.py +1 -1
  51. omlish/http/coro/fdio.py +1 -1
  52. omlish/http/coro/server.py +1 -1
  53. omlish/http/coro/simple.py +1 -1
  54. omlish/http/coro/sockets.py +1 -1
  55. omlish/http/handlers.py +1 -1
  56. omlish/http/parsing.py +1 -1
  57. omlish/http/versions.py +1 -1
  58. omlish/io/buffers.py +1 -1
  59. omlish/io/fdio/handlers.py +1 -1
  60. omlish/io/fdio/kqueue.py +1 -1
  61. omlish/io/fdio/manager.py +1 -1
  62. omlish/io/fdio/pollers.py +1 -1
  63. omlish/io/fileno.py +1 -1
  64. omlish/lang/attrs.py +3 -0
  65. omlish/lite/check.py +1 -1
  66. omlish/lite/configs.py +1 -1
  67. omlish/lite/contextmanagers.py +1 -1
  68. omlish/lite/dataclasses.py +1 -1
  69. omlish/lite/imports.py +1 -1
  70. omlish/lite/inject.py +1 -1
  71. omlish/lite/marshal.py +1 -1
  72. omlish/lite/maybes.py +1 -1
  73. omlish/lite/pycharm.py +1 -1
  74. omlish/lite/reprs.py +1 -1
  75. omlish/lite/secrets.py +1 -1
  76. omlish/lite/timeouts.py +1 -1
  77. omlish/lite/types.py +1 -1
  78. omlish/logs/callers.py +1 -1
  79. omlish/logs/filters.py +1 -1
  80. omlish/logs/handlers.py +1 -1
  81. omlish/logs/json.py +1 -1
  82. omlish/logs/protocol.py +1 -1
  83. omlish/logs/standard.py +1 -1
  84. omlish/logs/timing.py +1 -1
  85. omlish/manifests/base.py +1 -1
  86. omlish/manifests/load.py +1 -1
  87. omlish/manifests/types.py +1 -1
  88. omlish/os/atomics.py +1 -1
  89. omlish/os/fcntl.py +1 -1
  90. omlish/os/filemodes.py +1 -1
  91. omlish/os/files.py +1 -1
  92. omlish/os/forkhooks.py +1 -1
  93. omlish/os/journald.py +1 -1
  94. omlish/os/linux.py +1 -1
  95. omlish/os/mangle.py +1 -1
  96. omlish/os/paths.py +1 -1
  97. omlish/os/pidfiles/manager.py +1 -1
  98. omlish/os/pidfiles/pidfile.py +1 -1
  99. omlish/os/pidfiles/pinning.py +1 -1
  100. omlish/os/signals.py +1 -1
  101. omlish/os/temp.py +1 -1
  102. omlish/secrets/ssl.py +1 -1
  103. omlish/secrets/tempssl.py +1 -1
  104. omlish/sockets/addresses.py +1 -1
  105. omlish/sockets/bind.py +1 -1
  106. omlish/sockets/handlers.py +1 -1
  107. omlish/sockets/io.py +1 -1
  108. omlish/sockets/ports.py +1 -1
  109. omlish/sockets/server/handlers.py +1 -1
  110. omlish/sockets/server/server.py +1 -1
  111. omlish/sockets/server/ssl.py +1 -1
  112. omlish/sockets/server/threading.py +1 -1
  113. omlish/sockets/wait.py +1 -1
  114. omlish/sql/queries/params.py +4 -1
  115. omlish/subprocesses/async_.py +1 -1
  116. omlish/subprocesses/base.py +1 -1
  117. omlish/subprocesses/editor.py +1 -1
  118. omlish/subprocesses/run.py +1 -1
  119. omlish/subprocesses/sync.py +1 -1
  120. omlish/subprocesses/utils.py +1 -1
  121. omlish/subprocesses/wrap.py +1 -1
  122. omlish/term/progressbar.py +1 -1
  123. omlish/text/glyphsplit.py +1 -1
  124. omlish/text/indent.py +1 -1
  125. omlish/text/mangle.py +1 -1
  126. omlish/text/minja.py +1 -1
  127. omlish/typedvalues/consumer.py +1 -1
  128. {omlish-0.0.0.dev343.dist-info → omlish-0.0.0.dev344.dist-info}/METADATA +1 -1
  129. {omlish-0.0.0.dev343.dist-info → omlish-0.0.0.dev344.dist-info}/RECORD +133 -133
  130. {omlish-0.0.0.dev343.dist-info → omlish-0.0.0.dev344.dist-info}/WHEEL +0 -0
  131. {omlish-0.0.0.dev343.dist-info → omlish-0.0.0.dev344.dist-info}/entry_points.txt +0 -0
  132. {omlish-0.0.0.dev343.dist-info → omlish-0.0.0.dev344.dist-info}/licenses/LICENSE +0 -0
  133. {omlish-0.0.0.dev343.dist-info → omlish-0.0.0.dev344.dist-info}/top_level.txt +0 -0
omlish/__about__.py CHANGED
@@ -1,5 +1,5 @@
1
- __version__ = '0.0.0.dev343'
2
- __revision__ = '6a0ff41406c33cc5ee4421fe64093c7a5cb04314'
1
+ __version__ = '0.0.0.dev344'
2
+ __revision__ = '7879bbd3a30345a6d7ef71bdc452a03a2219b3e7'
3
3
 
4
4
 
5
5
  #
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import collections
4
4
  import heapq
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import functools
4
4
  import typing as ta
omlish/argparse/cli.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  FIXME:
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import asyncio
4
4
  import typing as ta
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import asyncio
4
4
  import typing as ta
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import asyncio
4
4
  import typing as ta
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import asyncio.base_subprocess
4
4
  import asyncio.subprocess
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import asyncio
4
4
  import typing as ta
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  TODO:
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  # Based on bluelet ( https://github.com/sampsyo/bluelet ) by Adrian Sampson, original license:
4
4
  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  # Based on bluelet ( https://github.com/sampsyo/bluelet ) by Adrian Sampson, original license:
4
4
  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP007
1
+ # ruff: noqa: UP007 UP045
2
2
  # @omlish-lite
3
3
  # Based on bluelet ( https://github.com/sampsyo/bluelet ) by Adrian Sampson, original license:
4
4
  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  # Based on bluelet ( https://github.com/sampsyo/bluelet ) by Adrian Sampson, original license:
4
4
  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  # Based on bluelet ( https://github.com/sampsyo/bluelet ) by Adrian Sampson, original license:
4
4
  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  # Based on bluelet ( https://github.com/sampsyo/bluelet ) by Adrian Sampson, original license:
4
4
  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
omlish/asyncs/buffers.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import typing as ta
4
4
 
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import io
3
3
  import typing as ta
4
4
 
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import io
3
3
  import types
4
4
  import typing as ta
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import dataclasses as dc
3
3
  import functools
4
4
  import inspect
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import typing as ta
3
3
 
4
4
  from .proxy import AsyncIoProxy
omlish/bootstrap/diag.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP007
1
+ # ruff: noqa: UP007 UP045
2
2
  import contextlib
3
3
  import dataclasses as dc
4
4
  import signal
omlish/bootstrap/main.py CHANGED
@@ -3,7 +3,7 @@ TODO:
3
3
  - -x / --exec - os.exec entrypoint
4
4
  - refuse to install non-exec-relevant Bootstraps when chosen
5
5
  """
6
- # ruff: noqa: UP006 UP007
6
+ # ruff: noqa: UP006 UP007 UP045
7
7
  import argparse
8
8
  import dataclasses as dc
9
9
  import io
omlish/bootstrap/sys.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import contextlib
3
3
  import dataclasses as dc
4
4
  import enum
omlish/collections/abc.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: ANN204
1
+ # ruff: noqa: ANN204 PLW1641
2
2
 
3
3
 
4
4
  class Hashable:
@@ -56,6 +56,12 @@ class OrderedSet(ta.MutableSet[T]):
56
56
  return len(self) == len(other) and list(self) == list(other)
57
57
  return set(self) == set(other)
58
58
 
59
+ def __ne__(self, other) -> bool:
60
+ return not (self == other)
61
+
62
+ def __hash__(self) -> int:
63
+ raise TypeError
64
+
59
65
 
60
66
  class OrderedFrozenSet(ta.FrozenSet[T]): # noqa
61
67
  _list: ta.Sequence[T]
@@ -41,6 +41,9 @@ class UnmodifiableSequence(ta.Sequence[T], Unmodifiable, lang.Final):
41
41
  def __gt__(self, other: ta.Any) -> bool:
42
42
  return self._target > other
43
43
 
44
+ def __hash__(self) -> int:
45
+ return hash(self._target)
46
+
44
47
  def __iter__(self) -> ta.Iterator[T]:
45
48
  return iter(self._target)
46
49
 
@@ -92,6 +95,9 @@ class UnmodifiableSet(ta.AbstractSet[T], Unmodifiable, lang.Final):
92
95
  def __gt__(self, s: ta.AbstractSet[ta.Any]) -> bool:
93
96
  return self._target > s
94
97
 
98
+ def __hash__(self) -> int:
99
+ return hash(self._target)
100
+
95
101
  def __iter__(self) -> ta.Iterator[T]:
96
102
  return iter(self._target)
97
103
 
@@ -148,6 +154,9 @@ class UnmodifiableMapping(ta.Mapping[K, V], Unmodifiable, lang.Final):
148
154
  def __gt__(self, other: ta.Any) -> bool:
149
155
  return self._target > other
150
156
 
157
+ def __hash__(self) -> int:
158
+ return hash(self._target)
159
+
151
160
  def __iter__(self) -> ta.Iterator[T]:
152
161
  return iter(self._target) # type: ignore
153
162
 
omlish/configs/formats.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  Notes:
omlish/configs/nginx.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  See:
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import abc
4
4
  import typing as ta
@@ -43,7 +43,7 @@ class ConfigFlattening:
43
43
  elif isinstance(value, list):
44
44
  check.not_empty(prefix)
45
45
  for i, v in enumerate(value):
46
- rec(prefix[:-1] + [f'{prefix[-1]}{self._index_open}{i}{self._index_close}'], v)
46
+ rec([*prefix[:-1], f'{prefix[-1]}{self._index_open}{i}{self._index_close}'], v)
47
47
  else:
48
48
  k = self._delimiter.join(prefix)
49
49
  if k in ret:
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  TODO:
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import dataclasses as dc
4
4
  import functools
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  TODO:
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  usecase: supervisor process groups
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import abc
4
4
  import collections.abc
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  TODO:
omlish/configs/shadow.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  TODO:
omlish/configs/types.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import typing as ta
4
4
 
omlish/datetimes.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP007
1
+ # ruff: noqa: UP007 UP045
2
2
  # @omlish-lite
3
3
  import datetime
4
4
  import re
omlish/diag/lslocks.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  https://github.com/util-linux/util-linux/blob/a4436c7bf07f98a6381c7dfa2ab3f9a415f9c479/misc-utils/lslocks.c
omlish/diag/lsof.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  https://man7.org/linux/man-pages/man8/lsof.8.html
omlish/diag/ps.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import dataclasses as dc
4
4
  import os
omlish/docker/detect.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import os
4
4
  import re
omlish/docker/ns1.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import dataclasses as dc
4
4
  import re
omlish/docker/ports.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  TODO:
omlish/formats/dotenv.py CHANGED
@@ -1,5 +1,5 @@
1
1
  # @omlish-lite
2
- # ruff: noqa: UP006 UP007 UP037
2
+ # ruff: noqa: UP006 UP007 UP037 UP045
3
3
  # Copyright (c) 2014, Saurabh Kumar (python-dotenv), 2013, Ted Tieken (django-dotenv-rw), 2013, Jacob Kaplan-Moss
4
4
  # (django-dotenv)
5
5
  #
@@ -315,7 +315,7 @@ class StreamParser(GenMachine[Token, ta.Any]):
315
315
 
316
316
  elif src[1] == 'u':
317
317
  check.state(len(src) == 6)
318
- c = chr(int(src[2:], 16))
318
+ c = chr(int(src[2:], 16)) # noqa
319
319
 
320
320
  elif src[1] == 'o':
321
321
  # \oXXX -> octal
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import configparser
4
4
  import io
omlish/formats/props.py CHANGED
@@ -379,7 +379,7 @@ class Properties(collections.abc.MutableMapping):
379
379
  self._source_file,
380
380
  )
381
381
 
382
- codepoint2 = int(codepoint2_hex[2:], base=16)
382
+ codepoint2 = int(codepoint2_hex[2:], base=16) # noqa
383
383
  if not (0xDC00 <= codepoint2 <= 0xDFFF):
384
384
  raise ParseError(
385
385
  'Low surrogate unicode escape sequence expected after high surrogate '
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  # SPDX-License-Identifier: MIT
4
4
  # SPDX-FileCopyrightText: 2021 Taneli Hukkinen
omlish/http/coro/fdio.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import socket
4
4
  import typing as ta
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  # PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
4
4
  # --------------------------------------------
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  """
4
4
  TODO:
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import typing as ta
4
4
 
omlish/http/handlers.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import abc
4
4
  import dataclasses as dc
omlish/http/parsing.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  # PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
4
4
  # --------------------------------------------
omlish/http/versions.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import typing as ta
4
4
 
omlish/io/buffers.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import io
4
4
  import typing as ta
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import abc
3
3
  import socket
4
4
  import typing as ta
omlish/io/fdio/kqueue.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import errno
3
3
  import select
4
4
  import sys
omlish/io/fdio/manager.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import typing as ta
3
3
 
4
4
  from .handlers import FdioHandler
omlish/io/fdio/pollers.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import abc
3
3
  import dataclasses as dc
4
4
  import errno
omlish/io/fileno.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import dataclasses as dc
4
4
 
omlish/lang/attrs.py CHANGED
@@ -186,6 +186,9 @@ class TransientDict(collections.abc.MutableMapping):
186
186
  def __eq__(self, other, /):
187
187
  raise TypeError(self)
188
188
 
189
+ def __hash__(self):
190
+ raise TypeError(self)
191
+
189
192
 
190
193
  #
191
194
 
omlish/lite/check.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  """
3
3
  TODO:
4
4
  - def maybe(v: lang.Maybe[T])
omlish/lite/configs.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import typing as ta
3
3
 
4
4
  from ..configs.formats import DEFAULT_CONFIG_FILE_LOADER
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP007
1
+ # ruff: noqa: UP007 UP045
2
2
  import contextlib
3
3
  import functools
4
4
  import sys
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import dataclasses as dc
3
3
  import typing as ta
4
4
 
omlish/lite/imports.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import types
3
3
  import typing as ta
4
4
 
omlish/lite/inject.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import abc
3
3
  import contextlib
4
4
  import contextvars
omlish/lite/marshal.py CHANGED
@@ -4,7 +4,7 @@ TODO:
4
4
  - literals
5
5
  - Options.sequence_cls = list, mapping_cls = dict, ... - def with_mutable_containers() -> Options
6
6
  """
7
- # ruff: noqa: UP006 UP007
7
+ # ruff: noqa: UP006 UP007 UP045
8
8
  import abc
9
9
  import base64
10
10
  import collections.abc
omlish/lite/maybes.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP007
1
+ # ruff: noqa: UP007 UP045
2
2
  import abc
3
3
  import functools
4
4
  import typing as ta
omlish/lite/pycharm.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import dataclasses as dc
3
3
  import typing as ta
4
4
 
omlish/lite/reprs.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP007
1
+ # ruff: noqa: UP007 UP045
2
2
  import dataclasses as dc
3
3
  import typing as ta
4
4
 
omlish/lite/secrets.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP007
1
+ # ruff: noqa: UP007 UP045
2
2
  import typing as ta
3
3
 
4
4
 
omlish/lite/timeouts.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  """
3
3
  TODO:
4
4
  - Event (/ Predicate)
omlish/lite/types.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  import typing as ta
3
3
 
4
4
 
omlish/logs/callers.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import io
4
4
  import sys
omlish/logs/filters.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import logging
4
4
  import threading
omlish/logs/handlers.py CHANGED
@@ -1,4 +1,4 @@
1
- # ruff: noqa: UP006 UP007
1
+ # ruff: noqa: UP006 UP007 UP045
2
2
  # @omlish-lite
3
3
  import logging
4
4
  import typing as ta